-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15c6a0e
commit 0217d6e
Showing
1 changed file
with
212 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,212 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
void main() { | ||
runApp(MyApp()); | ||
} | ||
|
||
class MyApp extends StatelessWidget { | ||
// This widget is the root of your application. | ||
@override | ||
Widget build(BuildContext context) { | ||
return MaterialApp( | ||
title: 'Flutter Demo', | ||
theme: ThemeData( | ||
primarySwatch: Colors.blue, | ||
visualDensity: VisualDensity.adaptivePlatformDensity, | ||
), | ||
home: Scaffold( | ||
appBar: AppBar( | ||
leading: Icon(Icons.keyboard_backspace,size: 30.0,), | ||
title: Text("Kehadiran"), | ||
), | ||
body: Column( | ||
// this makes the column height hug its content | ||
mainAxisSize: MainAxisSize.min, | ||
children: [ | ||
|
||
// first row | ||
Row( | ||
children: [ | ||
Padding( | ||
padding: EdgeInsets.only(left:40.0, right:40.0, top:10.0), | ||
child: Text( | ||
'H', // <--- text | ||
style: TextStyle(fontSize:20.0, | ||
color: const Color(0xFF000000), | ||
fontFamily: "Roboto"), | ||
), | ||
), | ||
Padding( | ||
padding: EdgeInsets.only(left:40.0, right:40.0, top:10.0), | ||
child: Text( | ||
'TH', // <--- text | ||
style: TextStyle(fontSize:20.0, | ||
color: const Color(0xFF000000), | ||
fontFamily: "Roboto"), | ||
), | ||
), | ||
Padding( | ||
padding: EdgeInsets.only(left:40.0, right:40.0, top:10.0), | ||
child: Text( | ||
'P', // <--- text | ||
style: TextStyle(fontSize:20.0, | ||
color: const Color(0xFF000000), | ||
fontFamily: "Roboto"), | ||
), | ||
), | ||
Padding( | ||
padding: EdgeInsets.only(left:40.0, right:40.0, top:10.0), | ||
child: Text( | ||
'%', // <--- text | ||
style: TextStyle(fontSize:20.0, | ||
color: const Color(0xFF000000), | ||
fontFamily: "Roboto"), | ||
), | ||
), | ||
], | ||
), | ||
|
||
// second row (single item) | ||
Row( | ||
children: [ | ||
Padding( | ||
padding: EdgeInsets.only(left:20.0, top:20.0), | ||
child: Text( | ||
'Senin', // <--- text | ||
style: TextStyle(fontSize:20.0, | ||
color: const Color(0xFF000000), | ||
fontFamily: "Roboto"), | ||
), | ||
), | ||
], | ||
), | ||
Row( | ||
children: [ | ||
Padding( | ||
padding: EdgeInsets.only(left:20.0), | ||
child: Text( | ||
'Pemrograman Mobile', // <--- text | ||
style: TextStyle(fontSize:20.0, | ||
color: const Color(0xFF000000), | ||
fontFamily: "Roboto"), | ||
), | ||
), | ||
], | ||
), | ||
// third row | ||
Row( | ||
children: [ | ||
Padding( | ||
padding: EdgeInsets.only(left:40.0, right:40.0, top:10.0), | ||
child: Text( | ||
'7', // <--- text | ||
style: TextStyle(fontSize:20.0, | ||
color: const Color(0xFF000000), | ||
fontFamily: "Roboto"), | ||
), | ||
), | ||
Padding( | ||
padding: EdgeInsets.only(left:50.0, right:40.0, top:10.0), | ||
child: Text( | ||
'0', // <--- text | ||
style: TextStyle(fontSize:20.0, | ||
color: const Color(0xFF000000), | ||
fontFamily: "Roboto"), | ||
), | ||
), | ||
Padding( | ||
padding: EdgeInsets.only(left:45.0, right:35.0, top:10.0), | ||
child: Text( | ||
'7', // <--- text | ||
style: TextStyle(fontSize:20.0, | ||
color: const Color(0xFF000000), | ||
fontFamily: "Roboto"), | ||
), | ||
), | ||
Padding( | ||
padding: EdgeInsets.only(left:40.0, right:40.0, top:10.0), | ||
child: Text( | ||
'100', // <--- text | ||
style: TextStyle(fontSize:20.0, | ||
color: const Color(0xFF000000), | ||
fontFamily: "Roboto", | ||
), | ||
), | ||
), | ||
], | ||
), | ||
Row( | ||
children: [ | ||
Padding( | ||
padding: EdgeInsets.only(left:20.0, top:20.0), | ||
child: Text( | ||
'Selasa', // <--- text | ||
style: TextStyle(fontSize:20.0, | ||
color: const Color(0xFF000000), | ||
fontFamily: "Roboto"), | ||
), | ||
), | ||
], | ||
), | ||
Row( | ||
children: [ | ||
Padding( | ||
padding: EdgeInsets.only(left:20.0), | ||
child: Text( | ||
'Kecerdasan Buatan', // <--- text | ||
style: TextStyle(fontSize:20.0, | ||
color: const Color(0xFF000000), | ||
fontFamily: "Roboto"), | ||
), | ||
), | ||
], | ||
), | ||
// third row | ||
Row( | ||
children: [ | ||
Padding( | ||
padding: EdgeInsets.only(left:40.0, right:40.0, top:10.0), | ||
child: Text( | ||
'4', // <--- text | ||
style: TextStyle(fontSize:20.0, | ||
color: const Color(0xFF000000), | ||
fontFamily: "Roboto"), | ||
), | ||
), | ||
Padding( | ||
padding: EdgeInsets.only(left:50.0, right:40.0, top:10.0), | ||
child: Text( | ||
'4', // <--- text | ||
style: TextStyle(fontSize:20.0, | ||
color: const Color(0xFF000000), | ||
fontFamily: "Roboto"), | ||
), | ||
), | ||
Padding( | ||
padding: EdgeInsets.only(left:45.0, right:35.0, top:10.0), | ||
child: Text( | ||
'8', // <--- text | ||
style: TextStyle(fontSize:20.0, | ||
color: const Color(0xFF000000), | ||
fontFamily: "Roboto"), | ||
), | ||
), | ||
Padding( | ||
padding: EdgeInsets.only(left:40.0, right:40.0, top:10.0), | ||
child: Text( | ||
'50', // <--- text | ||
style: TextStyle(fontSize:20.0, | ||
color: const Color(0xFF000000), | ||
fontFamily: "Roboto", | ||
), | ||
), | ||
), | ||
], | ||
), | ||
], | ||
), | ||
) | ||
); | ||
} | ||
} | ||
|