flutcn_ui 1.1.4
flutcn_ui: ^1.1.4 copied to clipboard
A UI component library for Flutter inspired by shadcn/ui, providing modular and customizable widgets.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'themes/app_theme.dart';
import 'home.dart';
import 'theme_notifier.dart';
final themeNotifier = ThemeNotifier();
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return ValueListenableBuilder<ThemeMode>(
valueListenable: themeNotifier,
builder: (context, themeMode, child) {
return MaterialApp(
title: 'Flutcn UI Showcase',
debugShowCheckedModeBanner: false,
theme: FlutcnTheme.lightTheme(),
darkTheme: FlutcnTheme.darkTheme(),
themeMode: themeMode,
home: const HomePage(),
);
},
);
}
}