📜  颤振组件位置绝对 - Dart 代码示例

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

代码示例1
List todos = [...];
return new Stack(
  children: [
    new ListView(
     children: todos
       .map((todo) => new ListTile(title: new Text(todo)))
       .toList(),
     ),
     new Positioned(
       left: 30.0,
       top: 30.0,
       child: new Container(
         width: 100.0,
         height: 80.0,
         decoration: new BoxDecoration(color: Colors.red),
         child: new Text('hello'),
        )
      ),
   ],
);