Answers for "font size in flutter"

9

flutter font bold

Text(
  'Some text',
  style: TextStyle(
    fontSize: 24,
    fontWeight: FontWeight.bold),
)
Posted by: Guest on June-23-2020
3

italic text flutter

Text(
  "Welcome to the present, we're running a real nation.",
  style: TextStyle(fontStyle: FontStyle.italic),
)
Posted by: Guest on October-21-2020
2

adjust text size flutter

Text(
    'Hello World!',
    style: TextStyle(fontSize: 25),
),
Posted by: Guest on August-09-2021
0

change font size in flutter

new MaterialButton(
  height: 140.0,
  minWidth: double.infinity,
  color: Theme.of(context).primaryColor,
  textColor: Colors.white,
  child: new Text(
    "material button",
    style: new TextStyle(
      fontSize: 20.0,
      color: Colors.yellow,
    ),
  ),
  onPressed: () => {},
  splashColor: Colors.redAccent,
);
Posted by: Guest on July-20-2021

Browse Popular Code Answers by Language