Answers for "flutter component position absolute"

0

flutter component position absolute

List<String> todos = [...];
return new Stack(
  children: <Widget>[
    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'),
        )
      ),
   ],
);
Posted by: Guest on September-09-2021

Code answers related to "flutter component position absolute"

Code answers related to "Dart"

Browse Popular Code Answers by Language