やりたいこと
RowのCrossAxisSizeをminにしたいです。
DartDevToolのWidgetInspectorを見てみたらIconButtonはheight: 48になってますが、
Rowはheight: 70(ParentのHeight)になってしまっています。
このRowをheight: 48にしたいです。
じゃあHeight: 48のContainerで囲めばいいじゃんというわけではなく、
childsのなかで最大のサイズにRowのheightを合わせたいです。
なにか方法はあるのでしょうか。
よろしくお願いします。
ソースコード
Container( width: 89, height: 70; child: Row( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, mainAxisSize: MainAxisSize.min, children: [ Text('item'), IconButton( icon: Icon( Icons.highlight_remove, ), onPressed: () => onRemoved, ), ], ), ),
環境
Flutter: 2.0.1
Dart: 2.12.0
% flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.0.1, on macOS 11.2.3 20D91 darwin-x64, locale en-JP) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 3.6) [✓] VS Code (version 1.54.3) [✓] Connected device (2 available) • No issues found!


バッドをするには、ログインかつ
こちらの条件を満たす必要があります。