kidd3166 hai 1 ano
pai
achega
6bd87ed9ff
Modificáronse 2 ficheiros con 3 adicións e 0 borrados
  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:package_info/package_info.dart';
 import 'package:permission_handler/permission_handler.dart';
+import 'package:sport/config.dart' as env;
 
 const bool inProduction = const bool.fromEnvironment("dart.vm.product");
 bool isDebugShoe = false;
 String shoeVersion = "";
+env.Config config = env.Config.ENV_DEV;
 
 bool openSocial() {
   // return false;

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

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