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

A simple way of managing multiple screen sizes, you just need to provide a PageContentBuilder implementation and a list of PageDestinationModel and the application will automatically adjust to any scr [...]

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())
    );
  }
}
1
likes
130
points
75
downloads

Publisher

unverified uploader

Weekly Downloads

A simple way of managing multiple screen sizes, you just need to provide a PageContentBuilder implementation and a list of PageDestinationModel and the application will automatically adjust to any screen size. For very small screen sizes wrap the widget into a FittedBox widget and set git to BoxFit.scaleDown and the app will adapt even better.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

cupertino_icons, draggable_home, fl_chart, flutter, google_fonts, provider

More

Packages that depend on fire_core_components