Dialogs Mobile. Remove custom contentPadding
This commit is contained in:
parent
370f86e7e3
commit
7351c58336
@ -696,10 +696,8 @@ class _RemotePageState extends State<RemotePage> {
|
|||||||
// return CustomAlertDialog(
|
// return CustomAlertDialog(
|
||||||
// title: Text(translate('Physical Keyboard Input Mode')),
|
// title: Text(translate('Physical Keyboard Input Mode')),
|
||||||
// content: Column(mainAxisSize: MainAxisSize.min, children: [
|
// content: Column(mainAxisSize: MainAxisSize.min, children: [
|
||||||
// getRadio('Legacy mode', 'legacy', current, setMode,
|
// getRadio('Legacy mode', 'legacy', current, setMode),
|
||||||
// contentPadding: EdgeInsets.zero),
|
// getRadio('Map mode', 'map', current, setMode),
|
||||||
// getRadio('Map mode', 'map', current, setMode,
|
|
||||||
// contentPadding: EdgeInsets.zero),
|
|
||||||
// ]));
|
// ]));
|
||||||
// }, clickMaskDismiss: true);
|
// }, clickMaskDismiss: true);
|
||||||
// }
|
// }
|
||||||
@ -1069,7 +1067,6 @@ void showOptions(
|
|||||||
content: Column(
|
content: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: displays + radios + toggles + more),
|
children: displays + radios + toggles + more),
|
||||||
contentPadding: 0,
|
|
||||||
);
|
);
|
||||||
}, clickMaskDismiss: true, backDismiss: true);
|
}, clickMaskDismiss: true, backDismiss: true);
|
||||||
}
|
}
|
||||||
|
@ -502,19 +502,18 @@ void showLanguageSettings(OverlayDialogManager dialogManager) async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return CustomAlertDialog(
|
return CustomAlertDialog(
|
||||||
title: SizedBox.shrink(),
|
content: Column(
|
||||||
content: Column(
|
children: [
|
||||||
children: [
|
getRadio('Default', '', lang, setLang),
|
||||||
getRadio('Default', '', lang, setLang),
|
Divider(color: MyTheme.border),
|
||||||
Divider(color: MyTheme.border),
|
] +
|
||||||
] +
|
langs.map((e) {
|
||||||
langs.map((e) {
|
final key = e[0] as String;
|
||||||
final key = e[0] as String;
|
final name = e[1] as String;
|
||||||
final name = e[1] as String;
|
return getRadio(name, key, lang, setLang);
|
||||||
return getRadio(name, key, lang, setLang);
|
}).toList(),
|
||||||
}).toList(),
|
),
|
||||||
),
|
);
|
||||||
actions: []);
|
|
||||||
}, backDismiss: true, clickMaskDismiss: true);
|
}, backDismiss: true, clickMaskDismiss: true);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
//
|
//
|
||||||
@ -536,14 +535,12 @@ void showThemeSettings(OverlayDialogManager dialogManager) async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return CustomAlertDialog(
|
return CustomAlertDialog(
|
||||||
title: SizedBox.shrink(),
|
content: Column(children: [
|
||||||
contentPadding: 10,
|
getRadio('Light', ThemeMode.light, themeMode, setTheme),
|
||||||
content: Column(children: [
|
getRadio('Dark', ThemeMode.dark, themeMode, setTheme),
|
||||||
getRadio('Light', ThemeMode.light, themeMode, setTheme),
|
getRadio('Follow System', ThemeMode.system, themeMode, setTheme)
|
||||||
getRadio('Dark', ThemeMode.dark, themeMode, setTheme),
|
]),
|
||||||
getRadio('Follow System', ThemeMode.system, themeMode, setTheme)
|
);
|
||||||
]),
|
|
||||||
actions: []);
|
|
||||||
}, backDismiss: true, clickMaskDismiss: true);
|
}, backDismiss: true, clickMaskDismiss: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -132,8 +132,6 @@ void setTemporaryPasswordLengthDialog(
|
|||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children:
|
children:
|
||||||
lengths.map((e) => getRadio(e, e, length, setLength)).toList()),
|
lengths.map((e) => getRadio(e, e, length, setLength)).toList()),
|
||||||
actions: [],
|
|
||||||
contentPadding: 14,
|
|
||||||
);
|
);
|
||||||
}, backDismiss: true, clickMaskDismiss: true);
|
}, backDismiss: true, clickMaskDismiss: true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user