Tugas Biodata Muhammad Rafli
Tugas Biodata Muhammad Rafli
Tugas Biodata Muhammad Rafli
NIM : 231220664
Kelas : A ( Sistem Informasi)
1.
import
'package:biodata/aplikasiku.
dart';
import
'package:flutter/material.dart
';
void main() {
runApp(const
ScreenServer());
}
debugShowCheckedModeBa
nner: false,
theme:
ThemeData(primarySwatch:
Colors.deepOrange),
home: const
LamanScreenServer(),
);
}
}
class LamanScreenServer
extends StatefulWidget {
const
LamanScreenServer({super.k
ey});
@override
State<LamanScreenServer>
createState() =>
_LamanScreenServerState();
}
class
_LamanScreenServerState
extends
State<LamanScreenServer> {
@override
initState() {
super.initState();
Future.delayed(const
Duration(seconds: 2), () {
Navigator.pushReplacement(
context,
MaterialPageRoute(builder:
(context) => const
aplikasiku()));
});
}
@override
Widget build(BuildContext
context) {
return Scaffold(
backgroundColor:
Colors.orangeAccent,
body: Center(
child: Column(
mainAxisAlignment:
MainAxisAlignment.center,
children: [
Image.asset('lib/image/mobi
l.png', height: 130),
],
),
),
);
}
}
2.
import
'package:flutter/material.dart
';
void main() {
runApp(aplikasiku());
}
@override
Widget build(BuildContext
context) {
return MaterialApp(
debugShowCheckedModeBa
nner: false,
title: 'kelola uang',
home: MyHomePage(),
);
}
}
@override
Widget build(BuildContext
context) {
return Scaffold(
body: SafeArea(
child: Column(
children: [
Text('total pemasukan
: Rp 1000'),
SizedBox(
height: 20,
),
Text('total
pengeluaran : Rp 500'),
ListTile(
title: Text("makan
siang"),
subtitle: Text('Rp
200'),
leading: Icon(
Icons.download,
color: Colors.green,
),
trailing: Wrap(
children: [
Icon(
Icons.edit,
color: Colors.grey,
),
SizedBox(
width: 20,
),
Icon(
Icons.delete,
color: Colors.red,
)
],
),
),
],
),
),
);
}
}