flutter how to center a widget in a stack using positioned code example
Example 1: flutter positioned center horizontally
Stack(
alignment: Alignment.center, // <---------
children: [
Text('Some text'),
// Other widgets
],
),
Example 2: flutter move container to top center
Center( child: Container( alignment: Alignment(0.0, -1.0), ),);