onix_flutter_provider 0.0.2 copy "onix_flutter_provider: ^0.0.2" to clipboard
onix_flutter_provider: ^0.0.2 copied to clipboard

Onix Flutter Provider

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:get_it/get_it.dart';
import 'package:loader_overlay/loader_overlay.dart';

import 'base_provider_example/base_provider_example_screen.dart';
import 'di.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  initializeDi(GetIt.I);
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return GlobalLoaderOverlay(
      child: MaterialApp(
        theme: ThemeData(
          colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
          useMaterial3: true,
        ),
        initialRoute: '/',
        routes: {
          '/': (context) =>
              const BaseProviderExampleScreen(title: 'Base Provider Example'),
        },
      ),
    );
  }
}
0
likes
140
points
140
downloads

Publisher

unverified uploader

Weekly Downloads

Onix Flutter Provider

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, loader_overlay, onix_flutter_core_models, provider

More

Packages that depend on onix_flutter_provider