getx_binding_annotation 0.0.4 copy "getx_binding_annotation: ^0.0.4" to clipboard
getx_binding_annotation: ^0.0.4 copied to clipboard

A Code Generator Plugin to Generate Pages and Dependencies for GetX State Manager base on Annotation. This package designed to prevent adding dependencies one by one into the lists of the GetX. You ca [...]

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'main.get_put.dart';
import 'resources/info.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});
  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      debugShowCheckedModeBanner: false,
      title: PackageAuthorInfo.packageNameDescription,
      /// You must set these four functions and variables in your Project
      initialBinding: GetPutBindings(), // Inject all dependencies
      getPages: GetPutPages.pages, // Add all the pages in GetX context
      initialRoute: GetPutPages.initialRoute.name, // Set initial route
      unknownRoute: GetPutPages.unknownRoute, // Set a route for any unknown or undefined route in the app
    );
  }
}
2
likes
0
points
337
downloads

Publisher

verified publisherresam.site

Weekly Downloads

A Code Generator Plugin to Generate Pages and Dependencies for GetX State Manager base on Annotation. This package designed to prevent adding dependencies one by one into the lists of the GetX. You can use it for pages or controllers or any other dependencies.

Homepage
Repository (GitHub)
View/report issues

Funding

Consider supporting this project:

resam.site

License

unknown (license)

More

Packages that depend on getx_binding_annotation