restrict width of missing voice button

pull/1476/head
ggurdin 1 year ago
parent f8a9273d31
commit a0faa99730
No known key found for this signature in database
GPG Key ID: A01CB41737CBB478

@ -40,23 +40,27 @@ class MissingVoiceButton extends StatelessWidget {
), ),
padding: const EdgeInsets.all(8), padding: const EdgeInsets.all(8),
margin: const EdgeInsets.only(top: 8), margin: const EdgeInsets.only(top: 8),
child: Column( child: SizedBox(
mainAxisAlignment: MainAxisAlignment.center, width: AppConfig.toolbarMinWidth,
children: [ child: Column(
Text( mainAxisSize: MainAxisSize.min,
L10n.of(context)!.voiceNotAvailable, mainAxisAlignment: MainAxisAlignment.center,
textAlign: TextAlign.center, children: [
), Text(
TextButton( L10n.of(context)!.voiceNotAvailable,
onPressed: () => launchTTSSettings, textAlign: TextAlign.center,
// commenting out as suspecting this is causing an issue
// #freeze-activity
style: const ButtonStyle(
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
), ),
child: Text(L10n.of(context)!.openVoiceSettings), TextButton(
), onPressed: () => launchTTSSettings,
], // commenting out as suspecting this is causing an issue
// #freeze-activity
style: const ButtonStyle(
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
),
child: Text(L10n.of(context)!.openVoiceSettings),
),
],
),
), ),
); );
} }

Loading…
Cancel
Save