diff --git a/lib/router.dart b/lib/router.dart index fb37b1d1d..142a2e2f8 100644 --- a/lib/router.dart +++ b/lib/router.dart @@ -578,7 +578,9 @@ Route createRoute(RouteSettings settings) { return MaterialPageRoute(builder: (_) => getIt.get()); case Routes.homeSettings: - return CupertinoPageRoute(builder: (_) => getIt.get()); + return CupertinoPageRoute( + builder: (_) => getIt.get(param1: settings.arguments), + ); default: return MaterialPageRoute( diff --git a/lib/src/screens/dashboard/home_settings_page.dart b/lib/src/screens/dashboard/home_settings_page.dart index df2e5de48..ed83d7b3c 100644 --- a/lib/src/screens/dashboard/home_settings_page.dart +++ b/lib/src/screens/dashboard/home_settings_page.dart @@ -33,23 +33,25 @@ class HomeSettingsPage extends BasePage { ), Row( children: [ - TextFormField( - controller: _searchController, - style: TextStyle(color: Theme.of(context).primaryTextTheme.titleLarge!.color!), - decoration: InputDecoration( - hintText: "S.of(context).search_token", - prefixIcon: Image.asset("assets/images/search_icon.png"), - filled: true, - fillColor: Theme.of(context).accentTextTheme.displaySmall!.color!, - alignLabelWithHint: false, - contentPadding: const EdgeInsets.symmetric(vertical: 4, horizontal: 16), - enabledBorder: OutlineInputBorder( - borderRadius: BorderRadius.circular(14), - borderSide: const BorderSide(color: Colors.transparent), - ), - focusedBorder: OutlineInputBorder( - borderRadius: BorderRadius.circular(14), - borderSide: const BorderSide(color: Colors.transparent), + Expanded( + child: TextFormField( + controller: _searchController, + style: TextStyle(color: Theme.of(context).primaryTextTheme.titleLarge!.color!), + decoration: InputDecoration( + hintText: "S.of(context).search_token", + prefixIcon: Image.asset("assets/images/search_icon.png"), + filled: true, + fillColor: Theme.of(context).accentTextTheme.displaySmall!.color!, + alignLabelWithHint: false, + contentPadding: const EdgeInsets.symmetric(vertical: 4, horizontal: 16), + enabledBorder: OutlineInputBorder( + borderRadius: BorderRadius.circular(14), + borderSide: const BorderSide(color: Colors.transparent), + ), + focusedBorder: OutlineInputBorder( + borderRadius: BorderRadius.circular(14), + borderSide: const BorderSide(color: Colors.transparent), + ), ), ), ),