import 'package:trackoffical_app/screen.dart'; import 'package:trackoffical_app/service/game/game_instance_std/game_instance_std.dart'; import 'game_std_controller.dart'; class SettlementView extends GetView{ const SettlementView({super.key}); GameStdController get c => controller as GameStdController; @override Widget build(BuildContext context) { return Scaffold( body: Center( child: Column( crossAxisAlignment: CrossAxisAlignment.center, mainAxisSize: MainAxisSize.min, children: [ Obx(() => Text(c.settlementTip.value, style: context.textTheme.titleLarge)), Image.asset( 'assets/images/loading.gif', height: 60, width: 60, ) ], ) ), ); } } void main() async { Get.put(GameStdController(GameInstanceStd(gameState:GameState()))); runPreview(const SettlementView()); }