getx_base_classes 0.0.2 getx_base_classes: ^0.0.2 copied to clipboard
A collection of base classes for GetX architecture in Flutter, providing common functionality for controllers, views, middleware, and more.
import 'package:example/helper/route.dart';
import 'package:flutter/material.dart';
import 'package:get/get_navigation/get_navigation.dart';
import 'init/app_env.dart';
void main() {
AppEnviornment.init();
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) => GetMaterialApp(
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
getPages: routes,
initialRoute: homePageRoute,
);
}