atomic_ui_kit 0.1.3 copy "atomic_ui_kit: ^0.1.3" to clipboard
atomic_ui_kit: ^0.1.3 copied to clipboard

A small kit of domain-free Flutter widgets: neumorphic buttons and containers, gradient text, a dropdown menu icon, percent and time range switches, and badges.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'src/app_theme.dart';
import 'src/components_page.dart';
import 'src/trading_page.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'atomic_ui_kit example',
      debugShowCheckedModeBanner: false,
      theme: buildAppTheme(),
      home: const HomeShell(),
    );
  }
}

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

  @override
  State<HomeShell> createState() => _HomeShellState();
}

class _HomeShellState extends State<HomeShell> {
  var _index = 0;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: IndexedStack(
        index: _index,
        children: const [ComponentsPage(), TradingPage()],
      ),
      bottomNavigationBar: NavigationBar(
        selectedIndex: _index,
        onDestinationSelected: (index) => setState(() => _index = index),
        destinations: const [
          NavigationDestination(
            icon: Icon(Icons.widgets_outlined),
            selectedIcon: Icon(Icons.widgets),
            label: 'Components',
          ),
          NavigationDestination(
            icon: Icon(Icons.show_chart_outlined),
            selectedIcon: Icon(Icons.show_chart),
            label: 'Trading',
          ),
        ],
      ),
    );
  }
}
0
likes
160
points
232
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A small kit of domain-free Flutter widgets: neumorphic buttons and containers, gradient text, a dropdown menu icon, percent and time range switches, and badges.

Repository (GitHub)
View/report issues

Topics

#widget #ui #neumorphic #components

License

MIT (license)

Dependencies

decimal, flutter

More

Packages that depend on atomic_ui_kit