Selaa lähdekoodia

[flutter]: fix parent data issue caused by expanded widget

appflowy 3 vuotta sitten
vanhempi
commit
4798823df3

+ 3 - 5
app_flowy/packages/flowy_infra_ui/lib/style_widget/button.dart

@@ -82,11 +82,9 @@ class FlowyTextButton extends StatelessWidget {
 
     Widget child = Padding(
       padding: padding,
-      child: Expanded(
-        child: Row(
-          crossAxisAlignment: CrossAxisAlignment.center,
-          children: children,
-        ),
+      child: Row(
+        crossAxisAlignment: CrossAxisAlignment.center,
+        children: children,
       ),
     );