Describe the rule you'd like to see implemented This would be a nice lint for Flutter. According to the Flutter documentation, using shrinkWrap in lists is expensive performance-wise and should be avoided, since
import 'package:flutter/material.dart'; import 'package:flutter_widget_from_html_core/flutter_widget_from_html_core.dart'; class Test extends StatelessWidget { @override Widget build(BuildContext context) => Scaffold( appBar: AppBar(title: Text('Issue 304')), body: Wrap( children: [ Chip( ...
Flutter 布局类组件:弹性布局(Flex) 2019-12-19 21:07 −## 前言 弹性布局允许子组件按照一定比例来分配父容器空间,Flutter中的弹性布局主要通过Flex和Expanded来配合实现。 ## Flex Flex组件可以沿着水平或垂直方向排列子组件,如果你知道主轴方向,使用Row或Column会方便一些,因为Row和Column都继承自Flex,参数基本....