fast_extensions 0.0.3 copy "fast_extensions: ^0.0.3" to clipboard
fast_extensions: ^0.0.3 copied to clipboard

outdated

Convenience extensions to make common Flutter tasks less annoying

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:fast_extensions/fast_extensions.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      themeMode: ThemeMode.system,
      theme: ThemeData.light(),
      darkTheme: ThemeData.dark(),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('fast_extensions_example'),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Text(
              'Back button tooltip: ${context.backButtonTooltip}',
              style: context.textTheme.headline4,
            ),
            Text('Country code: ${context.countryCode}'),
            Text('Language code: ${context.languageCode}'),
            Text('Is dark mode: ${context.isDarkMode}'),
          ],
        ),
      ),
    );
  }
}
0
likes
0
pub points
26%
popularity

Publisher

verified publisherrexios.dev

Convenience extensions to make common Flutter tasks less annoying

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on fast_extensions