class Expanded extends Flexible { /// Creates a widget that expands a child of a [Row], [Column], or [Flex] /// so that the child fills the available space along the flex widget's /// main axis. const Expanded({ super.key, super.flex, required super.child, }) : super(fit: FlexFit.tight); }
Flutter Expanded 源码
5 min read