panhui 6 ani în urmă
părinte
comite
ded04feb1b
2 a modificat fișierele cu 90 adăugiri și 92 ștergeri
  1. 71 66
      lib/pages/RoomInfo.dart
  2. 19 26
      pubspec.lock

+ 71 - 66
lib/pages/RoomInfo.dart

@@ -477,12 +477,9 @@ class RoomInfoState extends State<RoomInfo> with SingleTickerProviderStateMixin
     Future.delayed(Duration.zero, () async {
     Future.delayed(Duration.zero, () async {
       Result res2 = await HttpManager.get('systemVariable/get', data: {'name': "ticketPrice"});
       Result res2 = await HttpManager.get('systemVariable/get', data: {'name': "ticketPrice"});
       if (res2.success) {
       if (res2.success) {
-        print( res2.data);
+        print(res2.data);
         setState(() {
         setState(() {
-          race =double.parse( res2.data);
-           
-
-         
+          race = double.parse(res2.data);
         });
         });
       }
       }
       // showSucessInfo(3);
       // showSucessInfo(3);
@@ -719,66 +716,74 @@ class RoomInfoState extends State<RoomInfo> with SingleTickerProviderStateMixin
                           ),
                           ),
 
 
                           Container(
                           Container(
-                            padding: EdgeInsets.symmetric(horizontal: 20, vertical: 10),
-                            margin: EdgeInsets.fromLTRB(15, 7, 15, 0),
-                            decoration: BoxDecoration(color: Color(0xFF23253C), borderRadius: BorderRadius.all(Radius.circular(4))),
-                            child: Row(
-                              mainAxisAlignment: MainAxisAlignment.spaceBetween,
-                              children: <Widget>[
-                                Column(
-                                  children: <Widget>[
-                                    Row(
-                                      children: <Widget>[
-                                        Image.asset('images/icon_jifen.png'),
-                                        Text(
-                                          'x${houseInfo.bonus * houseInfo.houseLevel.firstRatio / 100}/${houseInfo.maxNumber * race * houseInfo.houseLevel.entryCoin * houseInfo.houseLevel.firstRatio / 100}',
-                                          style: TextStyle(color: Colors.white, fontSize: 14, fontWeight: FontWeight.w500),
-                                        )
-                                      ],
-                                    ),
-                                    Container(
-                                      height: 3,
-                                    ),
-                                    Text('第一名奖励', style: TextStyle(fontSize: 12, color: Color(0xFFB1B2C0)))
-                                  ],
-                                ),
-                                Column(
-                                  children: <Widget>[
-                                    Row(
-                                      children: <Widget>[
-                                        Image.asset('images/icon_jifen.png'),
-                                        Text(
-                                          'x${houseInfo.bonus * houseInfo.houseLevel.secondRatio / 100}/${houseInfo.maxNumber * race * houseInfo.houseLevel.entryCoin * houseInfo.houseLevel.secondRatio / 100}',
-                                          style: TextStyle(color: Colors.white, fontSize: 14, fontWeight: FontWeight.w500),
-                                        )
-                                      ],
-                                    ),
-                                    Container(
-                                      height: 3,
-                                    ),
-                                    Text('第二名奖励', style: TextStyle(fontSize: 12, color: Color(0xFFB1B2C0)))
-                                  ],
-                                ),
-                                Column(
-                                  children: <Widget>[
-                                    Row(
-                                      children: <Widget>[
-                                        Image.asset('images/icon_jifen.png'),
-                                        Text(
-                                          'x${houseInfo.bonus * houseInfo.houseLevel.thirdRatio / 100}/${houseInfo.maxNumber * race * houseInfo.houseLevel.entryCoin * houseInfo.houseLevel.thirdRatio / 100}',
-                                          style: TextStyle(color:Colors.white, fontSize: 14, fontWeight: FontWeight.w500),
-                                        )
-                                      ],
-                                    ),
-                                    Container(
-                                      height: 3,
-                                    ),
-                                    Text('第三名奖励', style: TextStyle(fontSize: 12, color: Color(0xFFB1B2C0)))
-                                  ],
-                                )
-                              ],
-                            ),
-                          ),
+                              padding: EdgeInsets.symmetric(horizontal: 20, vertical: 10),
+                              margin: EdgeInsets.fromLTRB(15, 7, 15, 0),
+                              decoration: BoxDecoration(color: Color(0xFF23253C), borderRadius: BorderRadius.all(Radius.circular(4))),
+                              child: Column(
+                                crossAxisAlignment: CrossAxisAlignment.start,
+                                children: <Widget>[
+                                  Row(
+                                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
+                                    children: <Widget>[
+                                      Column(
+                                        children: <Widget>[
+                                          Row(
+                                            children: <Widget>[
+                                              Image.asset('images/icon_jifen.png'),
+                                              Text(
+                                                'x${houseInfo.bonus * houseInfo.houseLevel.firstRatio / 100}/${houseInfo.maxNumber * race * houseInfo.houseLevel.entryCoin * houseInfo.houseLevel.firstRatio / 100}',
+                                                style: TextStyle(color: Colors.white, fontSize: 14, fontWeight: FontWeight.w500),
+                                              )
+                                            ],
+                                          ),
+                                          Container(
+                                            height: 3,
+                                          ),
+                                          Text('第一名', style: TextStyle(fontSize: 12, color: Color(0xFFB1B2C0)))
+                                        ],
+                                      ),
+                                      Column(
+                                        children: <Widget>[
+                                          Row(
+                                            children: <Widget>[
+                                              Image.asset('images/icon_jifen.png'),
+                                              Text(
+                                                'x${houseInfo.bonus * houseInfo.houseLevel.secondRatio / 100}/${houseInfo.maxNumber * race * houseInfo.houseLevel.entryCoin * houseInfo.houseLevel.secondRatio / 100}',
+                                                style: TextStyle(color: Colors.white, fontSize: 14, fontWeight: FontWeight.w500),
+                                              )
+                                            ],
+                                          ),
+                                          Container(
+                                            height: 3,
+                                          ),
+                                          Text('第二名', style: TextStyle(fontSize: 12, color: Color(0xFFB1B2C0)))
+                                        ],
+                                      ),
+                                      Column(
+                                        children: <Widget>[
+                                          Row(
+                                            children: <Widget>[
+                                              Image.asset('images/icon_jifen.png'),
+                                              Text(
+                                                'x${houseInfo.bonus * houseInfo.houseLevel.thirdRatio / 100}/${houseInfo.maxNumber * race * houseInfo.houseLevel.entryCoin * houseInfo.houseLevel.thirdRatio / 100}',
+                                                style: TextStyle(color: Colors.white, fontSize: 14, fontWeight: FontWeight.w500),
+                                              )
+                                            ],
+                                          ),
+                                          Container(
+                                            height: 3,
+                                          ),
+                                          Text('第三名', style: TextStyle(fontSize: 12, color: Color(0xFFB1B2C0)))
+                                        ],
+                                      )
+                                    ],
+                                  ),
+                                  Container(
+                                    height: 10,
+                                  ),
+                                  Text('注:上方显示数值为前三名的“当前奖励/最高奖励”',style: TextStyle(color: Colors.white30,fontSize: 12),)
+                                ],
+                              )),
 
 
                           timeStr != ''
                           timeStr != ''
                               ? Container(
                               ? Container(
@@ -847,7 +852,7 @@ class RoomInfoState extends State<RoomInfo> with SingleTickerProviderStateMixin
                                         Text.rich(TextSpan(children: [
                                         Text.rich(TextSpan(children: [
                                           TextSpan(text: '完成本房间任务目标后,'),
                                           TextSpan(text: '完成本房间任务目标后,'),
                                           TextSpan(
                                           TextSpan(
-                                            text: Platform.isIOS?'切记立刻返回应用':'切记立刻点击悬浮窗',
+                                            text: Platform.isIOS ? '切记立刻返回应用' : '切记立刻点击悬浮窗',
                                             style: TextStyle(fontWeight: FontWeight.w600, color: Color(0xFFFFB726)),
                                             style: TextStyle(fontWeight: FontWeight.w600, color: Color(0xFFFFB726)),
                                           ),
                                           ),
                                           TextSpan(text: '回到房间')
                                           TextSpan(text: '回到房间')

+ 19 - 26
pubspec.lock

@@ -1,13 +1,6 @@
 # Generated by pub
 # Generated by pub
-# See https://www.dartlang.org/tools/pub/glossary#lockfile
+# See https://dart.dev/tools/pub/glossary#lockfile
 packages:
 packages:
-  after_layout:
-    dependency: transitive
-    description:
-      name: after_layout
-      url: "https://pub.dartlang.org"
-    source: hosted
-    version: "1.0.7+2"
   analyzer:
   analyzer:
     dependency: transitive
     dependency: transitive
     description:
     description:
@@ -28,7 +21,7 @@ packages:
       name: async
       name: async
       url: "https://pub.dartlang.org"
       url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "2.1.0"
+    version: "2.3.0"
   battery:
   battery:
     dependency: "direct main"
     dependency: "direct main"
     description:
     description:
@@ -42,21 +35,21 @@ packages:
       name: boolean_selector
       name: boolean_selector
       url: "https://pub.dartlang.org"
       url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "1.0.4"
+    version: "1.0.5"
   build:
   build:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: build
       name: build
       url: "https://pub.dartlang.org"
       url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "1.1.6"
+    version: "1.2.0"
   build_config:
   build_config:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: build_config
       name: build_config
       url: "https://pub.dartlang.org"
       url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "0.4.1"
+    version: "0.4.1+1"
   build_daemon:
   build_daemon:
     dependency: transitive
     dependency: transitive
     description:
     description:
@@ -70,21 +63,21 @@ packages:
       name: build_resolvers
       name: build_resolvers
       url: "https://pub.dartlang.org"
       url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "1.0.7"
+    version: "1.0.8"
   build_runner:
   build_runner:
     dependency: "direct dev"
     dependency: "direct dev"
     description:
     description:
       name: build_runner
       name: build_runner
       url: "https://pub.dartlang.org"
       url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "1.6.9"
+    version: "1.7.1"
   build_runner_core:
   build_runner_core:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: build_runner_core
       name: build_runner_core
       url: "https://pub.dartlang.org"
       url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "3.1.1"
+    version: "4.1.0"
   built_collection:
   built_collection:
     dependency: transitive
     dependency: transitive
     description:
     description:
@@ -119,7 +112,7 @@ packages:
       name: checked_yaml
       name: checked_yaml
       url: "https://pub.dartlang.org"
       url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "1.0.1"
+    version: "1.0.2"
   code_builder:
   code_builder:
     dependency: transitive
     dependency: transitive
     description:
     description:
@@ -175,7 +168,7 @@ packages:
       name: dart_style
       name: dart_style
       url: "https://pub.dartlang.org"
       url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "1.2.7"
+    version: "1.2.9"
   dio:
   dio:
     dependency: "direct main"
     dependency: "direct main"
     description:
     description:
@@ -402,7 +395,7 @@ packages:
       name: meta
       name: meta
       url: "https://pub.dartlang.org"
       url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "1.1.6"
+    version: "1.1.7"
   mime:
   mime:
     dependency: transitive
     dependency: transitive
     description:
     description:
@@ -437,7 +430,7 @@ packages:
       name: path
       name: path
       url: "https://pub.dartlang.org"
       url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "1.6.2"
+    version: "1.6.4"
   path_provider:
   path_provider:
     dependency: "direct main"
     dependency: "direct main"
     description:
     description:
@@ -451,7 +444,7 @@ packages:
       name: pedantic
       name: pedantic
       url: "https://pub.dartlang.org"
       url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "1.5.0"
+    version: "1.8.0+1"
   permission_handler:
   permission_handler:
     dependency: "direct main"
     dependency: "direct main"
     description:
     description:
@@ -465,7 +458,7 @@ packages:
       name: photo_view
       name: photo_view
       url: "https://pub.dartlang.org"
       url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "0.3.3"
+    version: "0.5.0"
   platform:
   platform:
     dependency: transitive
     dependency: transitive
     description:
     description:
@@ -521,7 +514,7 @@ packages:
       name: quiver
       name: quiver
       url: "https://pub.dartlang.org"
       url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "2.0.2"
+    version: "2.0.5"
   redux:
   redux:
     dependency: "direct main"
     dependency: "direct main"
     description:
     description:
@@ -631,7 +624,7 @@ packages:
       name: string_scanner
       name: string_scanner
       url: "https://pub.dartlang.org"
       url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "1.0.4"
+    version: "1.0.5"
   synchronized:
   synchronized:
     dependency: transitive
     dependency: transitive
     description:
     description:
@@ -652,7 +645,7 @@ packages:
       name: test_api
       name: test_api
       url: "https://pub.dartlang.org"
       url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "0.2.4"
+    version: "0.2.5"
   timing:
   timing:
     dependency: transitive
     dependency: transitive
     description:
     description:
@@ -724,5 +717,5 @@ packages:
     source: hosted
     source: hosted
     version: "2.2.0"
     version: "2.2.0"
 sdks:
 sdks:
-  dart: ">=2.3.0-dev.0.1 <3.0.0"
-  flutter: ">=1.5.0 <2.0.0"
+  dart: ">=2.3.0 <3.0.0"
+  flutter: ">=1.5.9-pre.94 <2.0.0"