Fix initial UI

This commit is contained in:
OmarHatem 2023-06-21 03:56:27 +03:00
parent 2259a5e6fd
commit 1c3b433309
2 changed files with 22 additions and 18 deletions

View file

@ -578,7 +578,9 @@ Route<dynamic> createRoute(RouteSettings settings) {
return MaterialPageRoute<void>(builder: (_) => getIt.get<Modify2FAPage>());
case Routes.homeSettings:
return CupertinoPageRoute<void>(builder: (_) => getIt.get<HomeSettingsPage>());
return CupertinoPageRoute<void>(
builder: (_) => getIt.get<HomeSettingsPage>(param1: settings.arguments),
);
default:
return MaterialPageRoute<void>(

View file

@ -33,7 +33,8 @@ class HomeSettingsPage extends BasePage {
),
Row(
children: [
TextFormField(
Expanded(
child: TextFormField(
controller: _searchController,
style: TextStyle(color: Theme.of(context).primaryTextTheme.titleLarge!.color!),
decoration: InputDecoration(
@ -53,6 +54,7 @@ class HomeSettingsPage extends BasePage {
),
),
),
),
IconButton(
onPressed: () {},
style: IconButton.styleFrom(