flutter_addons 2.0.0 copy "flutter_addons: ^2.0.0" to clipboard
flutter_addons: ^2.0.0 copied to clipboard

Flutter Addons is a collection of extensions and utilities designed to simplify and accelerate the development of Flutter applications.

example/lib/main.dart

import 'package:example_app/home.dart';
import 'package:example_app/core/theme/theme_provider.dart';
import 'package:flutter/material.dart';
import 'package:flutter_addons/flutter_addons.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

void main() => runApp(ProviderScope(child: const MyApp()));

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

  @override
  Widget build(BuildContext context) {
    return ResponsiveScope(
      enableDebugLogging: true,
      designFrame: Frame(width: 320, height: 812),
      scaleMode: ScaleMode.design,
      layoutBuilder: (context, orientation, screenType) {
        return SoulApp();
      },
    );
  }
}

class SoulApp extends ConsumerWidget {
  const SoulApp({super.key});

  @override
  Widget build(BuildContext context, WidgetRef ref) {
    final theme = ref.watch(themeProvider);
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Addons Example',
      theme: theme.lightTheme,
      darkTheme: theme.darkTheme,
      themeMode: theme.themeMode,
      home: const StoreHomePage(),
    );
  }
}
3
likes
0
points
118
downloads

Publisher

verified publisherflutterwiki.com

Weekly Downloads

Flutter Addons is a collection of extensions and utilities designed to simplify and accelerate the development of Flutter applications.

Repository (GitHub)
View/report issues

Topics

#theme #utils #extensions #responsive #spacing

Documentation

Documentation

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_addons