flutter_addons 1.2.3 copy "flutter_addons: ^1.2.3" to clipboard
flutter_addons: ^1.2.3 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/home.dart';
import 'package:example/providers/theme_provider.dart';
import 'package:flutter/material.dart';
import 'package:flutter_addons/flutter_addons.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

Future<void> main() async {
  // Ensure ScreenUtils is initialized
  WidgetsFlutterBinding.ensureInitialized();
  runApp(ProviderScope(child: MyApp()));
}

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

  @override
  Widget build(BuildContext context, WidgetRef ref) {
    final theme = ref.watch(themeProvider);
    return UIConfig(
      frame: UIUtils.getFrame(context),
      minTextAdapt: true,
      splitScreenMode: true,
      //useNewErrorPainter: false,
      builder: (_, child) {
        return MaterialApp(
          debugShowCheckedModeBanner: false,
          title: 'Addons Example',
          theme: theme.lightTheme,
          darkTheme: theme.darkTheme,
          themeMode: theme.themeMode,
          home: HomePage(),
        );
      },
    );
  }
}
1
likes
150
points
295
downloads
screenshot

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
Contributing

Topics

#theme #utils #extensions #responsive #spacing

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on flutter_addons