fix: Replace Spacer with Expanded to avoid overflow (#1791)

This commit is contained in:
Pun Butrach 2024-03-28 11:38:07 +07:00 committed by GitHub
parent e85ed5a8e3
commit 6f70a07970
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 6 deletions

View File

@ -20,8 +20,9 @@ class SManageApiUrl extends BaseViewModel {
builder: (context) => AlertDialog(
title: Row(
children: <Widget>[
Text(t.settingsView.apiURLLabel),
const Spacer(),
Expanded(
child: Text(t.settingsView.apiURLLabel),
),
IconButton(
icon: const Icon(Icons.manage_history_outlined),
onPressed: () => showApiUrlResetDialog(context),

View File

@ -21,8 +21,9 @@ class SManageKeystorePassword extends BaseViewModel {
builder: (context) => AlertDialog(
title: Row(
children: <Widget>[
Text(t.settingsView.selectKeystorePassword),
const Spacer(),
Expanded(
child: Text(t.settingsView.selectKeystorePassword),
),
IconButton(
icon: const Icon(Icons.manage_history_outlined),
onPressed: () => _keystorePasswordController.text =

View File

@ -29,8 +29,9 @@ class SManageSources extends BaseViewModel {
builder: (context) => AlertDialog(
title: Row(
children: <Widget>[
Text(t.settingsView.sourcesLabel),
const Spacer(),
Expanded(
child: Text(t.settingsView.sourcesLabel),
),
IconButton(
icon: const Icon(Icons.manage_history_outlined),
onPressed: () => showResetConfirmationDialog(context),