xxxxxxxxxx
Text(
'Hello World!',
textAlign: TextAlign.left,
),
Use Alignment.centerLeft
xxxxxxxxxx
Container(
alignment: Alignment.centerLeft,
height: 64,
decoration: BoxDecoration(
border: Border.all(color: Color(0xFF000000), width: 1,),
),
child:
const Text('Cleaning Tools', style: TextStyle(
fontSize: 16,
),),
)
xxxxxxxxxx
Text(
'Hello, Flutter!',
textAlign: TextAlign.center, // Aligns text in the center
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
fontStyle: FontStyle.italic,
color: Colors.blue,
),
)