Skip to content

Commit b73a4ab

Browse files
committed
fix: fixed codegen dropdown overflow
1 parent 6bbbe9c commit b73a4ab

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/widgets/codegen_previewer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class ViewCodePane extends StatelessWidget {
135135
child: Column(
136136
children: [
137137
SizedBox(
138-
height: kHeaderHeight,
138+
height: constraints.maxWidth > 340 ? kHeaderHeight : kTabHeight,
139139
child: Row(
140140
children: [
141141
Expanded(

lib/widgets/dropdowns.dart

Lines changed: 1 addition & 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(

0 commit comments

Comments
 (0)