ThemeData constructor

const ThemeData({
  1. Color primaryColor = Colors.blue,
  2. Color backgroundColor = Colors.white,
  3. Color surfaceColor = Colors.white,
  4. Color textColor = Colors.black,
  5. Color mutedTextColor = Colors.grey,
  6. num borderRadius = 8,
  7. String fontFamily = 'sans-serif',
})

Creates theme values.

Implementation

const ThemeData(
    {this.primaryColor = Colors.blue,
    this.backgroundColor = Colors.white,
    this.surfaceColor = Colors.white,
    this.textColor = Colors.black,
    this.mutedTextColor = Colors.grey,
    this.borderRadius = 8,
    this.fontFamily = 'sans-serif'});