athrainsky 2 năm trước cách đây
mục cha
commit
0c6e073535
3 tập tin đã thay đổi với 57 bổ sung20 xóa
  1. 29 19
      lib/main.dart
  2. 27 1
      pubspec.lock
  3. 1 0
      pubspec.yaml

+ 29 - 19
lib/main.dart

@@ -1,5 +1,5 @@
-import 'package:english_words/english_words.dart';
 import 'package:flutter/material.dart';
+import 'package:go_router/go_router.dart';
 
 void main() {
   runApp(MyApp());
@@ -31,22 +31,28 @@ class MyHomePage extends StatelessWidget {
         mainAxisAlignment: MainAxisAlignment.spaceEvenly,
         children: [
           Lang(),
-          Expanded(child: Column(
-            mainAxisAlignment: MainAxisAlignment.center,
-            children: [
-              Judul(),
-            ],
-          ),),
-          Text('Silakan pindai QR terlebih dulu untuk mulai menggunakan aplikasi.', softWrap: true,),
-          Expanded(            
-            child: Column(
-              mainAxisAlignment: MainAxisAlignment.center,
-              children: [
-                Pindai(),
-              ],
-            ),
+          //Expanded(child: Column(
+          //  mainAxisAlignment: MainAxisAlignment.center,
+          //  children: [
+          //   Judul(),
+          //  ],
+          //),),
+          Expanded(child: Center(child: Text('TelNow'))),
+          Padding(
+            padding: const EdgeInsets.only(left: 100, right: 100),
+            child: Text('Silakan pindai QR terlebih dulu untuk mulai menggunakan aplikasi.', 
+            softWrap: true,),
           ),
-          Footer(),
+          Expanded(child:
+            // child: Column(
+            //   mainAxisAlignment: MainAxisAlignment.center,
+            //   children: [
+                Center(child: Pindai()),
+            //   ],
+            // ),
+          ),
+          Text('Kebijakan Privasi'),
+          Text('Versi 4.0.0.0'),
           Container(
             color: Theme.of(context).colorScheme.primaryContainer,
           )
@@ -75,9 +81,13 @@ var selectedIndex = 0;
       padding: const EdgeInsets.all(8.0),
       child: Row(            
         children: [
-          Expanded(child: SizedBox(width: 1,)),
-          ElevatedButton(onPressed: (){print('EN');}, child: Text('EN')),
-          ElevatedButton(onPressed: (){print('ID');}, child: Text('ID'))
+          Expanded(child: Container()),
+          ElevatedButton
+          (onPressed: (){print('EN');}, 
+          child: Text('EN'),),
+          ElevatedButton
+          (onPressed: (){print('ID');}, 
+          child: Text('ID'))
         ],        
       ),
     );

+ 27 - 1
pubspec.lock

@@ -67,6 +67,25 @@ packages:
     description: flutter
     source: sdk
     version: "0.0.0"
+  flutter_web_plugins:
+    dependency: transitive
+    description: flutter
+    source: sdk
+    version: "0.0.0"
+  go_router:
+    dependency: "direct main"
+    description:
+      name: go_router
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "6.0.2"
+  js:
+    dependency: transitive
+    description:
+      name: js
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "0.6.4"
   lints:
     dependency: transitive
     description:
@@ -74,6 +93,13 @@ packages:
       url: "https://pub.dartlang.org"
     source: hosted
     version: "2.0.1"
+  logging:
+    dependency: transitive
+    description:
+      name: logging
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "1.1.1"
   matcher:
     dependency: transitive
     description:
@@ -172,4 +198,4 @@ packages:
     version: "2.1.2"
 sdks:
   dart: ">=2.18.4 <3.0.0"
-  flutter: ">=1.16.0"
+  flutter: ">=3.3.0"

+ 1 - 0
pubspec.yaml

@@ -14,6 +14,7 @@ dependencies:
 
   english_words: ^4.0.0
   provider: ^6.0.0
+  go_router: ^6.0.2
 
 dev_dependencies:
   flutter_test: