Fixed adaptive Size issue

This commit is contained in:
Harinandan 2022-01-20 08:13:38 +05:30
parent 907b10b783
commit c1ccad104b
2 changed files with 23 additions and 45 deletions

View File

@ -24,15 +24,16 @@ class _SettingsDialogState extends State<SettingsDialog> {
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10), borderRadius: BorderRadius.circular(10),
), ),
title: ConstrainedBox( title: const Text(
'Settings',
style: TextStyle(
fontWeight: FontWeight.bold,
),
),
content: ConstrainedBox(
constraints: const BoxConstraints( constraints: const BoxConstraints(
maxHeight: 600, maxHeight: 600,
), ),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const SettingsPanelHeader(),
Expanded(
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
@ -56,30 +57,6 @@ class _SettingsDialogState extends State<SettingsDialog> {
], ],
), ),
), ),
],
),
),
);
}
}
class SettingsPanelHeader extends StatelessWidget {
const SettingsPanelHeader({
Key? key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return const Padding(
padding: EdgeInsets.all(16.0),
child: Text(
//TODO: Change to i10n
'Settings',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 24,
),
),
); );
} }
} }

View File

@ -42,6 +42,7 @@ class SettingsMenuElement extends StatelessWidget {
style: const TextStyle( style: const TextStyle(
fontSize: 14, fontSize: 14,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
overflow: TextOverflow.ellipsis,
), ),
), ),
); );