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

PlatformiOS

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(
      routesForMediaType: (mediaType) => [
        ...kAppRoutes,
        GoRoute(
          path: '/',
          builder: (_, __) => 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
110
pub points
0%
popularity

Publisher

unverified uploader

Set of images Widgets for the fastyle library.

Repository (GitHub)
View/report issues

Documentation

API reference

License

ISC (LICENSE)

Dependencies

fastyle_core, flutter, flutter_svg, t_helpers, vector_graphics

More

Packages that depend on fastyle_images