Search
 
SCRIPT & CODE EXAMPLE
 

DART

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,
);
Comment

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(),
    ),
  };      
Comment

PREVIOUS NEXT
Code Example
Dart :: mainBottomSheet dismiss flutte 
Dart :: flutter await http.get timeout 
Dart :: flutter checkbox color 
Dart :: Round button with text and icon in flutter 
Dart :: Flutter turn string to int 
Dart :: flutter floatingactionbutton position 
Dart :: flutter listtile color 
Dart :: alertdialog flutter barrierColor 
Dart :: how to change flutter text font 
Dart :: flutter absorb pointer 
Dart :: how to add onpressed to a text flutter 
Dart :: DartPad requires localStorage to be enabled 
Dart :: flutter string to datetime format 
Dart :: dart data class generator 
Dart :: dart enum 
Dart :: how to put the Pi in dart 
Dart :: after build flutter 
Dart :: flutter blur background 
Dart :: how to convert timestamp to datetime in dart 
Dart :: flutter delete file 
Dart :: dispose in dart 
Dart :: change app bar height flutter 
Dart :: border radius to card flutter dart 
Dart :: dart round 
Dart :: convert future to stream using stream.fromfuture dart 
Dart :: Flutter bottom navigation bar change page programmatically 
Dart :: Autocomplete Widget in Flutter 
Dart :: create a int list dart 
Dart :: align column to center of flex flutter 
Dart :: dart while loop 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =