fastyle_images 0.0.23 copy "fastyle_images: ^0.0.23" to clipboard
fastyle_images: ^0.0.23 copied to clipboard

Set of images Widgets for the fastyle library.

example/lib/main.dart

// Flutter imports:
import 'package:flutter/material.dart';

// Package imports:
import 'package:fastyle_core/fastyle_core.dart';
import 'package:go_router/go_router.dart';

// Project imports:
import './routes.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return FastApp(
      // localizationsDelegates: context.localizationDelegates,
      // supportedLocales: context.supportedLocales,
      // locale: context.locale,
      routes: kAppRoutes,
      homeBuilder: (_) => FastSectionPage(
        titleText: 'Fastyle Images',
        contentPadding: EdgeInsets.zero,
        showAppBar: false,
        child: Builder(
          builder: (context) {
            return FastNavigationListView(
              items: const [
                FastItem(
                  labelText: 'commodities',
                  value: '/commodities',
                ),
                FastItem(
                  labelText: 'cryptos',
                  value: '/cryptos',
                ),
                FastItem(
                  labelText: 'flags',
                  value: '/flags',
                ),
              ],
              onSelectionChanged: (FastItem<String> item) {
                if (item.value == null) {
                  GoRouter.of(context).go(item.value!);
                }
              },
            );
          },
        ),
      ),
    );
  }
}
0
likes
0
points
290
downloads

Publisher

unverified uploader

Weekly Downloads

Set of images Widgets for the fastyle library.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

fastyle_core, flutter, flutter_svg, vector_graphics

More

Packages that depend on fastyle_images