fix color of tim, scroll bar and add readme help for android build errors

This commit is contained in:
2026-03-20 11:26:36 +02:00
parent 98e9beb1cb
commit 0d65e625f1
10 changed files with 253 additions and 35 deletions

View File

@@ -16,24 +16,7 @@ class MyApp extends StatefulWidget {
class _MyAppState extends State<MyApp> {
@override
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(),
// ),
// ),
home: const HomePage(),
);
return MaterialApp(title: 'Flutter Demo', home: const HomePage());
}
}
@@ -45,6 +28,7 @@ class HomePage extends StatelessWidget {
return Scaffold(
body: Center(
child: MihPackageTile(
authenticateUser: true,
onTap: () {
Navigator.push(
context,
@@ -52,9 +36,9 @@ class HomePage extends StatelessWidget {
);
},
packageName: "Example Package",
packageIcon: Icon(MihIcons.mihLogo, color: MihColors.secondary()),
packageIcon: Icon(MihIcons.mihLogo, color: MihColors.primary()),
iconSize: 150,
textColor: MihColors.secondary(),
textColor: MihColors.primary(),
),
),
);

View File

@@ -14,6 +14,7 @@ class _ToolBodyOneState extends State<ToolBodyOne> {
return MihPackageToolBody(
backgroundColor: MihColors.primary(),
bodyItem: MihSingleChildScroll(
scrollbarOn: true,
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: [

View File

@@ -24,6 +24,7 @@ class _ToolBodyTwoState extends State<ToolBodyTwo> {
return MihPackageToolBody(
backgroundColor: MihColors.primary(),
bodyItem: MihSingleChildScroll(
scrollbarOn: true,
child: MihForm(
formKey: _formKey,
formFields: [