📜  flutter column min height screen Sixe - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:08.204000             🧑  作者: Mango

代码示例1
import 'dart:math'; // for max function

// Add the following around your column
LayoutBuilder(
  builder: (BuildContext context, BoxConstraints constraints) {
    return SingleChildScrollView(
      child: ConstrainedBox(
        constraints: BoxConstraints.tightFor(height: max(500, constraints.maxHeight)),
        child: Column(), // your column
      ),
    );
  },
);