flutter align top right
Align(
alignment: Alignment.topRight,
child: Text("widget"),
)
flutter align top right
Align(
alignment: Alignment.topRight,
child: Text("widget"),
)
how to write text in return align in flute
Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
width: 300,
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
color: Colors.blue,
),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
child: Text(
"Without Alignment",
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 30),
),
),
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[
Container(
decoration: BoxDecoration(
border: Border.all(),
),
child: Text(
"7:30 PM",
textDirection: TextDirection.rtl,
textAlign: TextAlign.right,
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 30),
),
),
],
)
],
),
),
),
how to align text in center in flutter container
Container(
child: Align(
alignment: Alignment.center,
child: Text(
'Some text here',
style: TextStyle(
),
),
),
),
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us