Browse Source

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

appflowy 3 years ago
parent
commit
4798823df3
1 changed files with 3 additions and 5 deletions
  1. 3 5
      app_flowy/packages/flowy_infra_ui/lib/style_widget/button.dart

+ 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,
       ),
     );