Tugas Biodata Muhammad Rafli

Download as pdf or txt
Download as pdf or txt
You are on page 1of 17

Nama : Muhammad Rafli

NIM : 231220664
Kelas : A ( Sistem Informasi)

1.
import
'package:biodata/aplikasiku.
dart';
import
'package:flutter/material.dart
';
void main() {
runApp(const
ScreenServer());
}

class ScreenServer extends


StatelessWidget {
const
ScreenServer({super.key});
@override
Widget build(BuildContext
context) {
return MaterialApp(

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());
}

class aplikasiku extends


StatelessWidget {
const
aplikasiku({super.key});

@override
Widget build(BuildContext
context) {
return MaterialApp(

debugShowCheckedModeBa
nner: false,
title: 'kelola uang',
home: MyHomePage(),
);
}
}

class MyHomePage extends


StatelessWidget {
const
MyHomePage({super.key});

@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,
)
],
),
),
],
),
),
);
}
}

You might also like