mirror of
https://github.com/immich-app/immich.git
synced 2025-06-03 21:54:21 -04:00
chore(mobile): full width language change dropdown (#8806)
* chore(mobile): full width language change dropdown * linting
This commit is contained in:
parent
103cb60a57
commit
1aa8707b8a
@ -23,7 +23,10 @@ class LanguageSettings extends HookConsumerWidget {
|
|||||||
return ListView(
|
return ListView(
|
||||||
padding: const EdgeInsets.all(16),
|
padding: const EdgeInsets.all(16),
|
||||||
children: [
|
children: [
|
||||||
DropdownMenu(
|
LayoutBuilder(
|
||||||
|
builder: (context, constraints) {
|
||||||
|
return DropdownMenu(
|
||||||
|
width: constraints.maxWidth,
|
||||||
inputDecorationTheme: InputDecorationTheme(
|
inputDecorationTheme: InputDecorationTheme(
|
||||||
border: OutlineInputBorder(
|
border: OutlineInputBorder(
|
||||||
borderRadius: BorderRadius.circular(20),
|
borderRadius: BorderRadius.circular(20),
|
||||||
@ -36,6 +39,11 @@ class LanguageSettings extends HookConsumerWidget {
|
|||||||
borderRadius: BorderRadius.circular(15),
|
borderRadius: BorderRadius.circular(15),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
backgroundColor: MaterialStatePropertyAll<Color>(
|
||||||
|
context.isDarkTheme
|
||||||
|
? Colors.grey[900]!
|
||||||
|
: context.scaffoldBackgroundColor,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
menuHeight: context.height * 0.5,
|
menuHeight: context.height * 0.5,
|
||||||
hintText: "Languages",
|
hintText: "Languages",
|
||||||
@ -54,6 +62,8 @@ class LanguageSettings extends HookConsumerWidget {
|
|||||||
selectedLocale.value = value;
|
selectedLocale.value = value;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
ElevatedButton(
|
ElevatedButton(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user