forui 0.4.0 copy "forui: ^0.4.0" to clipboard
forui: ^0.4.0 copied to clipboard

Forui is a UI library for Flutter that provides a set of minimalistic widgets heavily inspired by Shadcn/ui.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:forui/forui.dart';

import 'package:forui_example/example.dart';

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

class Application extends StatefulWidget {
  const Application({super.key});

  @override
  State<Application> createState() => _ApplicationState();
}

class _ApplicationState extends State<Application> {
  int index = 1;

  @override
  Widget build(BuildContext context) => MaterialApp(
        builder: (context, child) => FTheme(
          data: FThemes.zinc.dark,
          child: FScaffold(
            header: FHeader(
              title: const Text('Example'),
              actions: [
                FHeaderAction(
                  icon: FAssets.icons.plus,
                  onPress: () {},
                ),
              ],
            ),
            content: child!,
            footer: FBottomNavigationBar(
              index: index,
              onChange: (index) => setState(() => this.index = index),
              items: [
                FBottomNavigationBarItem(
                  icon: FAssets.icons.home,
                  label: 'Home',
                ),
                FBottomNavigationBarItem(
                  icon: FAssets.icons.layoutGrid,
                  label: 'Categories',
                ),
                FBottomNavigationBarItem(
                  icon: FAssets.icons.search,
                  label: 'Search',
                ),
                FBottomNavigationBarItem(
                  icon: FAssets.icons.settings,
                  label: 'Settings',
                ),
              ],
            ),
          ),
        ),
        home: const Example(),
      );
}
101
likes
0
pub points
88%
popularity

Publisher

verified publisherforuslabs.com

Forui is a UI library for Flutter that provides a set of minimalistic widgets heavily inspired by Shadcn/ui.

Homepage
Repository (GitHub)
View/report issues

Topics

#ui #widget

Documentation

Documentation

License

unknown (license)

Dependencies

collection, flutter, flutter_localizations, flutter_svg, forui_assets, google_fonts, intl, meta, nitrogen_flutter_svg, nitrogen_types, sugar

More

Packages that depend on forui