flutter container around text code example
Example 1: flutter center text in container
child: Center(
child: Text(
"Hello World",
textAlign: TextAlign.center,
),
),
Example 2: flutter input text in container
TextField(
decoration: InputDecoration(
border: InputBorder.none,
hintText: 'Enter a search term'
),
);