bellamy 0.0.1 bellamy: ^0.0.1 copied to clipboard
Beauty UI component package for flutter
Beauty UI component package for flutter
Features #
Prebuild Theme and Custom Theme
Getting started #
Requirement #
dart ">=2.18.0 <3.0.0"
flutter ">=1.17.0"
Usage #
//Custom Theme
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
//custom theme have default color or you can customize your own color
return MaterialApp(
title: 'Flutter Demo',
theme: AppTheme.custom(primary: Colors.red),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
//or
//Prebuild Theme you can use :
// AppTheme.nature()
// AppTheme.pastel()
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
//prebuild theme have color default according to UI research
return MaterialApp(
title: 'Flutter Demo',
theme: AppTheme.nature(),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}