atomic_ui_kit 0.1.3
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.
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',
),
],
),
);
}
}