2

MaterialApp でカスタマイズされたテーマを作成できることはわかっていますが、予約語の代わりに独自の単語を使用することは可能ですか?

例えば:

MaterialApp(
  title: title,
  theme: ThemeData(
    // Define the default brightness and colors.
    brightness: Brightness.dark,
    primaryColor: Colors.lightBlue[800],
    accentColor: Colors.cyan[600],

    // Define the default font family.
    fontFamily: 'Georgia',

    // Define the default TextTheme. Use this to specify the default
    // text styling for headlines, titles, bodies of text, and more.
    textTheme: TextTheme(
      nameReview: TextStyle(fontSize: 72.0, fontWeight: FontWeight.bold),
      textReview: TextStyle(fontSize: 36.0, fontStyle: FontStyle.italic),
      dateReview: TextStyle(fontSize: 14.0, fontFamily: 'Hind'),
    ),
  )
);

レビュー ウィジェットの構成を確認すると、コードが読みやすくなります。

4

0 に答える 0