getxify 5.0.0 copy "getxify: ^5.0.0" to clipboard
getxify: ^5.0.0 copied to clipboard

An improved and enhanced version of GetX - Open screens/snackbars/dialogs without context, manage states and inject dependencies easily with GetXify.

example/lib/main.dart

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

import 'app/routes/app_pages.dart';
import 'services/auth_service.dart';
import 'services/cart_service.dart';

void main() {
  runApp(
    GetMaterialApp(
      title: "GetXify Mart",
      debugShowCheckedModeBanner: false,
      binds: [Bind.put(AuthService()), Bind.put(CartService())],
      theme: ThemeData(
        useMaterial3: true,
        colorScheme: ColorScheme.fromSeed(
          seedColor: Colors.indigo,
          brightness: Brightness.light,
        ),
        scaffoldBackgroundColor: const Color(0xFFF8F9FA),
        appBarTheme: const AppBarTheme(centerTitle: true, elevation: 0),
        cardTheme: CardThemeData(
          elevation: 2,
          shape: RoundedRectangleBorder(
            borderRadius: BorderRadius.circular(16),
          ),
        ),
      ),
      darkTheme: ThemeData(
        useMaterial3: true,
        colorScheme: ColorScheme.fromSeed(
          seedColor: Colors.indigo,
          brightness: Brightness.dark,
        ),
        scaffoldBackgroundColor: const Color(0xFF121212),
        appBarTheme: const AppBarTheme(centerTitle: true, elevation: 0),
        cardTheme: CardThemeData(
          elevation: 4,
          shape: RoundedRectangleBorder(
            borderRadius: BorderRadius.circular(16),
          ),
        ),
      ),
      themeMode: ThemeMode.system,
      getPages: AppPages.routes,
      initialRoute: AppPages.initial,
    ),
  );
}
8
likes
160
points
278
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

An improved and enhanced version of GetX - Open screens/snackbars/dialogs without context, manage states and inject dependencies easily with GetXify.

Repository (GitHub)
View/report issues
Contributing

Topics

#state-management #dependency-injection #routing #navigation #reactive

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, web

More

Packages that depend on getxify