tooklit update pt1
This commit is contained in:
@@ -18,20 +18,20 @@ class _MyAppState extends State<MyApp> {
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'Flutter Demo',
|
||||
theme: ThemeData(
|
||||
scaffoldBackgroundColor: MihColors.primary(),
|
||||
colorScheme: ColorScheme(
|
||||
brightness: Brightness.dark,
|
||||
primary: MihColors.secondary(),
|
||||
onPrimary: MihColors.primary(),
|
||||
secondary: MihColors.primary(),
|
||||
onSecondary: MihColors.secondary(),
|
||||
error: MihColors.red(),
|
||||
onError: MihColors.primary(),
|
||||
surface: MihColors.primary(),
|
||||
onSurface: MihColors.secondary(),
|
||||
),
|
||||
),
|
||||
// theme: ThemeData(
|
||||
// scaffoldBackgroundColor: MihColors.primary(),
|
||||
// colorScheme: ColorScheme(
|
||||
// brightness: Brightness.dark,
|
||||
// primary: MihColors.secondary(),
|
||||
// onPrimary: MihColors.primary(),
|
||||
// secondary: MihColors.primary(),
|
||||
// onSecondary: MihColors.secondary(),
|
||||
// error: MihColors.red(),
|
||||
// onError: MihColors.primary(),
|
||||
// surface: MihColors.primary(),
|
||||
// onSurface: MihColors.secondary(),
|
||||
// ),
|
||||
// ),
|
||||
home: const HomePage(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -25,6 +25,8 @@ class _ExamplePackageState extends State<ExamplePackage> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MihPackage(
|
||||
backgroundColor: MihColors.primary(),
|
||||
titleColor: MihColors.secondary(),
|
||||
packageActionButton: actionButton(),
|
||||
packageTools: tools(),
|
||||
packageToolBodies: toolBodies(),
|
||||
@@ -40,6 +42,7 @@ class _ExamplePackageState extends State<ExamplePackage> {
|
||||
|
||||
Widget actionButton() {
|
||||
return MihPackageAction(
|
||||
iconColor: MihColors.secondary(),
|
||||
icon: Icon(Icons.arrow_back),
|
||||
iconSize: 35,
|
||||
onTap: () {
|
||||
@@ -65,7 +68,12 @@ class _ExamplePackageState extends State<ExamplePackage> {
|
||||
selectedbodyIndex = 1;
|
||||
});
|
||||
};
|
||||
return MihPackageTools(tools: temp, selectedIndex: selectedbodyIndex);
|
||||
return MihPackageTools(
|
||||
toolColor: MihColors.green(),
|
||||
onSelectedIconColor: MihColors.primary(),
|
||||
tools: temp,
|
||||
selectedIndex: selectedbodyIndex,
|
||||
);
|
||||
}
|
||||
|
||||
List<Widget> toolBodies() {
|
||||
|
||||
Reference in New Issue
Block a user