fire_core_components 1.0.5 copy "fire_core_components: ^1.0.5" to clipboard
fire_core_components: ^1.0.5 copied to clipboard

A simple way of managing multiple screen sizes, you just need to provide a PageContentBuilder implementation and a list of PageDestinationModel

example/main.dart

import 'package:fire_core_components/src/theme/theme_model.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

import 'sample/navigation_controller_sample.dart';
import 'sample/page_content_builder_impl.dart';


Future<void> main() async {
  runApp(
      MultiProvider(
          providers: [
            ChangeNotifierProvider(create: (context) => ThemeModel()),
            ChangeNotifierProvider(create: (context) => PageContentBuilderImpl())
          ],
          builder: ((context, child) => MyApp())
      )
  );
}

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  // Root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'FIRE Core Components',
        theme: Provider.of<ThemeModel>(context).currentTheme,
        home: SafeArea(child: NavigationControllerSample())
    );
  }
}
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A simple way of managing multiple screen sizes, you just need to provide a PageContentBuilder implementation and a list of PageDestinationModel

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cupertino_icons, draggable_home, firebase_auth, firebase_core, firebase_ui_auth, fl_chart, flutter, google_fonts, provider

More

Packages that depend on fire_core_components