Fix ui inconsistency
This commit is contained in:
@@ -34,12 +34,12 @@ class WarpOptionsTiles extends HookConsumerWidget {
|
|||||||
|
|
||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
SwitchListTile.adaptive(
|
SwitchListTile(
|
||||||
title: Text(t.settings.config.enableWarp),
|
title: Text(t.settings.config.enableWarp),
|
||||||
value: options.enableWarp,
|
value: options.enableWarp,
|
||||||
onChanged: (value) async {
|
onChanged: (value) async {
|
||||||
if (!warpPrefaceCompleted) {
|
if (!warpPrefaceCompleted) {
|
||||||
final agreed = await showAdaptiveDialog<bool>(
|
final agreed = await showDialog<bool>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => const WarpLicenseAgreementModal(),
|
builder: (context) => const WarpLicenseAgreementModal(),
|
||||||
);
|
);
|
||||||
@@ -154,7 +154,7 @@ class WarpLicenseAgreementModal extends HookConsumerWidget {
|
|||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
final t = ref.watch(translationsProvider);
|
final t = ref.watch(translationsProvider);
|
||||||
|
|
||||||
return AlertDialog.adaptive(
|
return AlertDialog(
|
||||||
title: Text(t.settings.config.warpConsent.title),
|
title: Text(t.settings.config.warpConsent.title),
|
||||||
content: Text.rich(
|
content: Text.rich(
|
||||||
t.settings.config.warpConsent.description(
|
t.settings.config.warpConsent.description(
|
||||||
|
|||||||
Reference in New Issue
Block a user