Answers for "change font size 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
1

flutter change android default font size

/// Android has different 'textscalefactor' settings, like:
  /// 'Small: 0.85', 'Default: 1.0', 'Large: 1.15', 'Largest: 1.3'
/// To make sure the text in your app stays as you intended it to,
  /// use the MediaQuery Widget to overwrite the system default:
@override
  Widget build(BuildContext context) {
    return MediaQuery(
      data: MediaQuery.of(context).copyWith(textScaleFactor: 1.15), // Large
      child: Scaffold(),
    ),
  };
Posted by: Guest on September-09-2020
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