Zul*_*qar 11
@override
Widget build(BuildContext context) {
// TODO: implement build
return new Container(
width: 150.0,
height: 150.0,
child: new Stack(children: <Widget>[
new Container(
alignment: Alignment.center,
color: Colors.redAccent,
child: Text('Hello'),
),
new Align(alignment: Alignment.bottomRight,
child: FloatingActionButton(
child: new Icon(Icons.add),
onPressed: (){}),
)
],
),
);
}
Run Code Online (Sandbox Code Playgroud)
tud*_*dan 10
您可以使用堆栈小部件。
Stack(
children: [
/*your_widget_1*/,
/*your_widget_2*/,
],
);
Run Code Online (Sandbox Code Playgroud)