|
@@ -31,25 +31,23 @@ class MyHomePage extends StatelessWidget {
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
children: [
|
|
|
Lang(),
|
|
|
- //Expanded(child: Column(
|
|
|
- // mainAxisAlignment: MainAxisAlignment.center,
|
|
|
- // children: [
|
|
|
- // Judul(),
|
|
|
- // ],
|
|
|
- //),),
|
|
|
- Expanded(child: Center(child: Text('TelNow'))),
|
|
|
+ Expanded(
|
|
|
+ child: Center(
|
|
|
+ child: Text('TelNow',
|
|
|
+ style: TextStyle(color: Colors.orange,
|
|
|
+ fontSize: 48),
|
|
|
+ )
|
|
|
+ ),
|
|
|
+ ),
|
|
|
Padding(
|
|
|
- padding: const EdgeInsets.only(left: 100, right: 100),
|
|
|
+ padding: const EdgeInsets.only(left: 120, right: 120),
|
|
|
child: Text('Silakan pindai QR terlebih dulu untuk mulai menggunakan aplikasi.',
|
|
|
- softWrap: true,),
|
|
|
+ softWrap: true,
|
|
|
+ textAlign: TextAlign.center,
|
|
|
+ ),
|
|
|
),
|
|
|
Expanded(child:
|
|
|
- // child: Column(
|
|
|
- // mainAxisAlignment: MainAxisAlignment.center,
|
|
|
- // children: [
|
|
|
Center(child: Pindai()),
|
|
|
- // ],
|
|
|
- // ),
|
|
|
),
|
|
|
Text('Kebijakan Privasi'),
|
|
|
Text('Versi 4.0.0.0'),
|
|
@@ -83,36 +81,37 @@ var selectedIndex = 0;
|
|
|
children: [
|
|
|
Expanded(child: Container()),
|
|
|
ElevatedButton
|
|
|
- (onPressed: (){print('EN');},
|
|
|
- child: Text('EN'),),
|
|
|
+ (onPressed: (){print('EN');},
|
|
|
+ child: Text('EN'),
|
|
|
+ ),
|
|
|
ElevatedButton
|
|
|
- (onPressed: (){print('ID');},
|
|
|
- child: Text('ID'))
|
|
|
+ (onPressed: (){print('ID');},
|
|
|
+ child: Text('ID'))
|
|
|
],
|
|
|
),
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class Judul extends StatelessWidget {
|
|
|
- const Judul({
|
|
|
- Key? key,
|
|
|
- }) : super(key: key);
|
|
|
-
|
|
|
- @override
|
|
|
- Widget build(BuildContext context) {
|
|
|
- var theme = Theme.of(context);
|
|
|
- var style = theme.textTheme.displayMedium!.copyWith(
|
|
|
- color: Colors.orange,
|
|
|
- );
|
|
|
-
|
|
|
- return Column(
|
|
|
- children: [
|
|
|
- Text('TelNow', style: style),
|
|
|
- ],
|
|
|
- );
|
|
|
- }
|
|
|
-}
|
|
|
+// class Judul extends StatelessWidget {
|
|
|
+// const Judul({
|
|
|
+// Key? key,
|
|
|
+// }) : super(key: key);
|
|
|
+
|
|
|
+// @override
|
|
|
+// Widget build(BuildContext context) {
|
|
|
+// var theme = Theme.of(context);
|
|
|
+// var style = theme.textTheme.displayMedium!.copyWith(
|
|
|
+// color: Colors.orange,
|
|
|
+// );
|
|
|
+
|
|
|
+// return Column(
|
|
|
+// children: [
|
|
|
+// Text('TelNow', style: style),
|
|
|
+// ],
|
|
|
+// );
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
class Pindai extends StatelessWidget {
|
|
|
const Pindai({
|
|
@@ -135,20 +134,20 @@ class Pindai extends StatelessWidget {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class Footer extends StatelessWidget {
|
|
|
- const Footer({
|
|
|
- Key? key,
|
|
|
- }) : super(key: key);
|
|
|
-
|
|
|
- @override
|
|
|
- Widget build(BuildContext context) {
|
|
|
- return Column(
|
|
|
- children: [
|
|
|
- Text('Kebijakan Privasi'),
|
|
|
- Text('Versi 4.0.0.0'),
|
|
|
- ],
|
|
|
- );
|
|
|
- }
|
|
|
-}
|
|
|
+// class Footer extends StatelessWidget {
|
|
|
+// const Footer({
|
|
|
+// Key? key,
|
|
|
+// }) : super(key: key);
|
|
|
+
|
|
|
+// @override
|
|
|
+// Widget build(BuildContext context) {
|
|
|
+// return Column(
|
|
|
+// children: [
|
|
|
+// Text('Kebijakan Privasi'),
|
|
|
+// Text('Versi 4.0.0.0'),
|
|
|
+// ],
|
|
|
+// );
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
|