flutter_addons 2.0.0-alpha.1 copy "flutter_addons: ^2.0.0-alpha.1" to clipboard
flutter_addons: ^2.0.0-alpha.1 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/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 ResponsiveApp(
      designSize: const Size(375, 812), // Reference design size
      scaleMode: ScaleMode.design, // Use design scaling
      debugLog: true,
      builder: (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
113
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