Skip to content

Commit e9daa89

Browse files
authored
Merge pull request #348 from alainjr10/resolve-issue-329
Fix: Fixed codegen dropdown button overflow
2 parents 610e45c + e3084e8 commit e9daa89

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/widgets/dropdowns.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ class DropdownButtonCodegenLanguage extends StatelessWidget {
157157
Widget build(BuildContext context) {
158158
final surfaceColor = Theme.of(context).colorScheme.surface;
159159
return DropdownButton<CodegenLanguage>(
160+
isExpanded: true,
160161
focusColor: surfaceColor,
161162
value: codegenLanguage,
162163
icon: const Icon(
@@ -181,6 +182,8 @@ class DropdownButtonCodegenLanguage extends StatelessWidget {
181182
child: Text(
182183
value.label,
183184
style: kTextStyleButton,
185+
overflow: TextOverflow.ellipsis,
186+
maxLines: 1,
184187
),
185188
),
186189
);

0 commit comments

Comments
 (0)