elbe 0.2.5 copy "elbe: ^0.2.5" to clipboard
elbe: ^0.2.5 copied to clipboard

a toolkit for simplifying frontend development

example/lib/main.dart

import 'package:elbe/elbe.dart';
import 'package:example/routes.dart';

import 'bit/b_theme_seed.dart';

void main() => runApp(_App());

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

  final GoRouter _appRouter = GoRouter(routes: appRoutes);

  @override
  Widget build(BuildContext context) => BitProvider(
      create: (_) => ThemeSeedBit(),
      child: ThemeSeedBit.builder(
        onData: (bit, data) => ElbeApp(
          router: _appRouter,
          mode: data.mode,
          debugShowCheckedModeBanner: false,
          theme: ThemeData.preset(
              titleVariant: TypeVariants.bold,
              titleFont: data.font,
              border: Border(
                borderRadius: BorderRadius.circular(data.borderRadius),
                pixelWidth: data.borderWidth,
              ),
              colorSeed:
                  ColorSeed.make(accent: LayerColor.fromBack(data.accent))),
        ),
      ));
}
4
likes
130
points
268
downloads

Publisher

verified publisherrobbb.in

Weekly Downloads

a toolkit for simplifying frontend development

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

collection, flutter, go_router, lucide_icons, package_info_plus

More

Packages that depend on elbe