blob: ea0b4829b6b754d626e210b03e06c44d1d5c7a58 [file] [log] [blame]
// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
class MaterialDemoThemeData {
static final themeData = ThemeData(
colorScheme: _colorScheme,
appBarTheme: AppBarTheme(
color: _colorScheme.primary,
iconTheme: IconThemeData(color: _colorScheme.onPrimary),
),
buttonTheme: ButtonThemeData(
textTheme: ButtonTextTheme.primary,
colorScheme: _colorScheme,
),
canvasColor: _colorScheme.background,
cursorColor: _colorScheme.primary,
highlightColor: Colors.transparent,
indicatorColor: _colorScheme.onPrimary,
primaryColor: _colorScheme.primary,
scaffoldBackgroundColor: _colorScheme.background,
typography: Typography(
platform: defaultTargetPlatform,
englishLike: Typography.englishLike2018,
dense: Typography.dense2018,
tall: Typography.tall2018,
),
);
static const _colorScheme = ColorScheme(
primary: Color(0xFF6200EE),
primaryVariant: Color(0xFF6200EE),
secondary: Color(0xFFFF5722),
secondaryVariant: Color(0xFFFF5722),
background: Colors.white,
surface: Color(0xFFF2F2F2),
onBackground: Colors.black,
onSurface: Colors.black,
error: Colors.red,
onError: Colors.white,
onPrimary: Colors.white,
onSecondary: Colors.white,
brightness: Brightness.light,
);
}