import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'test_controller.dart'; class TestView extends GetView{ const TestView({super.key}); static Bindings bindings(){ return BindingsBuilder(() { Get.lazyPut(() => TestController()); }); } @override Widget build(BuildContext context) { return const Scaffold( body: DefaultTextStyle( style: TextStyle(color: Colors.white), child: Stack( children: [ Text('Hello World', style: TextStyle(fontSize: 43, fontWeight: FontWeight.w700)) ], ), )); } }