honghengqiang 1 жил өмнө
parent
commit
cced4a4b01

+ 3 - 3
build/web/flutter_service_worker.js

@@ -4,9 +4,9 @@ const TEMP = 'flutter-temp-cache';
 const CACHE_NAME = 'flutter-app-cache';
 const RESOURCES = {
   "version.json": "31e94b74b10adf8c4726b9f6a1aaac70",
-"index.html": "c3d991c609df562961232590b1485389",
-"/": "c3d991c609df562961232590b1485389",
-"main.dart.js": "3980607518dda9500aaeecde7468557c",
+"index.html": "0e1fb50dc4eb6bca6c56bd1d6922326a",
+"/": "0e1fb50dc4eb6bca6c56bd1d6922326a",
+"main.dart.js": "c340d4f97adf3299f17d51d648512a56",
 "flutter.js": "1cfe996e845b3a8a33f57607e8b09ee4",
 "favicon.png": "6f9fbe8d82bb2e6e513a48fe5fa9a982",
 "icons/Icon-192.png": "bda638850092d23e46a7049a37ead710",

+ 1 - 1
build/web/index.html

@@ -34,7 +34,7 @@
 
   <script>
     // The value below is injected by flutter build, do not touch.
-    var serviceWorkerVersion = '1820617440';
+    var serviceWorkerVersion = '170716066';
   </script>
   <!-- This script adds the flutter initialization JS code -->
   <script src="flutter.js" defer></script>

+ 3 - 3
build/web/main.dart.js

@@ -60975,7 +60975,7 @@ am(){return new A.Ig(["\u4e86\u89e3\u76ee\u7684\u5730","\u8054\u7cfb\u6211\u4eec
 A.Ig.prototype={
 ap(){var s=this
 s.aN()
-if(A.hY())s.f=40*$.ai().gbU()
+if(A.hY())s.f=30*$.ai().gbU()
 else s.f=60*$.ai().gbU()
 s.d=A.aca(3,s)},
 L(a){var s,r,q=this,p=null,o=q.d
@@ -61014,7 +61014,7 @@ r=$.ai()
 q=r.gbN()
 r=r.a
 r===$&&A.a()
-o=75*(q/r.a)}else{s=60*$.ai().gbU()
+o=100*(q/r.a)}else{s=60*$.ai().gbU()
 r=$.ai()
 q=r.gbN()
 r=r.a
@@ -65930,7 +65930,7 @@ B.EL=new A.V(1/0,46)
 B.EM=new A.V(1/0,1/0)
 B.e3=new A.v6(0,0,null,null)
 B.EN=new A.v8(null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null)
-B.EO=new A.F2(4,1)
+B.EO=new A.F2(5,1)
 B.EP=new A.F2(2,1.6)
 B.Ly=new A.oy(3,"hide")
 B.EQ=new A.oy(5,"timeout")

+ 9 - 8
lib/home/asia_view.dart

@@ -21,9 +21,9 @@ class _CountryDataWidgetState extends State<CountryDataWidget>
   @override
   void initState() {
     super.initState();
-    if(Util.isWeb()){
+    if (Util.isWeb()) {
       margin = 0.2.sw;
-    }else{
+    } else {
       margin = 0.1.sw;
     }
   }
@@ -40,19 +40,21 @@ class _CountryDataWidgetState extends State<CountryDataWidget>
                 if (list.isEmpty) {
                   list.addAll(snapshot.data!);
                 }
-                if(Util.isWeb()){
+                if (Util.isWeb()) {
                   return GridView(
-                    gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
-                      crossAxisCount: 4,
+                    gridDelegate:
+                        const SliverGridDelegateWithFixedCrossAxisCount(
+                      crossAxisCount: 5,
                       childAspectRatio: 1,
                     ),
                     children: List.generate(list.length, (index) {
                       return CountryItemWidget(list[index]);
                     }),
                   );
-                }else{
+                } else {
                   return GridView(
-                    gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
+                    gridDelegate:
+                        const SliverGridDelegateWithFixedCrossAxisCount(
                       crossAxisCount: 2,
                       childAspectRatio: 1.6,
                     ),
@@ -61,7 +63,6 @@ class _CountryDataWidgetState extends State<CountryDataWidget>
                     }),
                   );
                 }
-
               } else {
                 return Text("Error:${snapshot.error}");
               }

+ 3 - 3
lib/home/home.dart

@@ -24,9 +24,9 @@ class _HomePageState extends State<HomePage>
   @override
   void initState() {
     super.initState();
-    if(Util.isWeb()){
-      tabBarTextSize = 40.sp;
-    }else{
+    if (Util.isWeb()) {
+      tabBarTextSize = 30.sp;
+    } else {
       tabBarTextSize = 60.sp;
     }
     _tabController = TabController(length: tabs.length, vsync: this);

+ 3 - 3
lib/home/item_country.dart

@@ -14,11 +14,11 @@ class CountryItemWidget extends StatelessWidget {
     var textSize = 0.0;
     var imageWidth = 0.0;
     var imageHeight = 0.0;
-    if(Util.isWeb()){
+    if (Util.isWeb()) {
       textSize = 18.sp;
       imageWidth = 150.w;
-      imageHeight = 75.w;
-    }else{
+      imageHeight = 100.w;
+    } else {
       textSize = 60.sp;
       imageWidth = 500.w;
       imageHeight = 250.w;