| 123456789101112131415161718192021222324252627 |
- import 'package:flutter/material.dart';
- import 'package:get/get.dart';
- import 'test_controller.dart';
- class TestView extends GetView<TestController>{
- const TestView({super.key});
- static Bindings bindings(){
- return BindingsBuilder(() {
- Get.lazyPut<TestController>(() => 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))
- ],
- ),
- ));
- }
- }
|