get_smart 0.1.5 copy "get_smart: ^0.1.5" to clipboard
get_smart: ^0.1.5 copied to clipboard

A package of widgets and utils to make flutter easy and smart.

example/lib/main.dart

import 'package:example/src/login_page.dart';
import 'package:flutter/material.dart';
import 'package:get_smart/get_smart.dart';

void main() => runApp(const App());

class App extends StatelessWidget {
  const App({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) => GetMaterialApp(
        title: 'Get Smart Demo',
        builder: (context, child) => Theme(
          data: GetTheme.blackOffWhite(context),
          child: child!,
        ),
        localizationsDelegates: const [GetLocalizations.delegate],
        supportedLocales: GetLocalizations.supportedLocales,
        initialRoute: AppRoute.login,
        getPages: AppRoute.pages,
        debugShowCheckedModeBanner: false,
        defaultTransition: Transition.cupertino,
      );
}

class AppRoute {
  static final login = $route(LoginPage);

  static List<GetPage> get pages => [
        GetPage(
          name: login,
          page: () => const LoginPage(),
          transition: Transition.noTransition,
        ),
      ];
}