“Instal Google Fonts Flutter” Kode Jawaban

Google Fonts Flutter

//Add this command you will get latest version of this depedency
$ flutter pub add google_fonts
//import this library
import 'package:google_fonts/google_fonts.dart';
Cautious Crocodile

Google Fonts Flutter


dependencies:
  google_fonts: ^2.1.0
Scary Shark

Googlefont yang berkibar.

Text(
  'This is Google Fonts',
  style: GoogleFonts.lato(
    textStyle: Theme.of(context).textTheme.display1,
    fontSize: 48,
    fontWeight: FontWeight.w700,
    fontStyle: FontStyle.italic,
  ),
),
Dizzy Dunlin

Flutter Tambahkan font khusus

flutter:
  fonts:
    - family: Proxima
      fonts:
        - asset: lib/fonts/ProximaNova-Regular.otf

In case you are using an emulator, go to the terminal and type "flutter clean" then "flutter pub get" to update the font used.
verdy

Instal Google Fonts Flutter

$ flutter pub add google_fonts
Good Gentoo

Jawaban yang mirip dengan “Instal Google Fonts Flutter”

Pertanyaan yang mirip dengan “Instal Google Fonts Flutter”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya