kidd3166 1 year ago
parent
commit
6bd87ed9ff
2 changed files with 3 additions and 0 deletions
  1. 2 0
      lib/application.dart
  2. 1 0
      lib/pages/game/game_detail.dart

+ 2 - 0
lib/application.dart

@@ -9,10 +9,12 @@ import 'package:flutter/material.dart';
 import 'package:logger/logger.dart';
 import 'package:logger/logger.dart';
 import 'package:package_info/package_info.dart';
 import 'package:package_info/package_info.dart';
 import 'package:permission_handler/permission_handler.dart';
 import 'package:permission_handler/permission_handler.dart';
+import 'package:sport/config.dart' as env;
 
 
 const bool inProduction = const bool.fromEnvironment("dart.vm.product");
 const bool inProduction = const bool.fromEnvironment("dart.vm.product");
 bool isDebugShoe = false;
 bool isDebugShoe = false;
 String shoeVersion = "";
 String shoeVersion = "";
+env.Config config = env.Config.ENV_DEV;
 
 
 bool openSocial() {
 bool openSocial() {
   // return false;
   // return false;

+ 1 - 0
lib/pages/game/game_detail.dart

@@ -175,6 +175,7 @@ Future<bool> startGame(BuildContext context, GameInfoData? game, {String? invite
             : true
             : true
         : false,
         : false,
     'debug': isDebugShoe,
     'debug': isDebugShoe,
+    'server': config.baseUrl,
   };
   };
 
 
   print("start game $gameType params: $params");
   print("start game $gameType params: $params");