플러터 Flutter 테마 Theme 변경하기 간단 구현

반응형
  • 코드 작성
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(    
        brightness: Brightness.dark,
        primaryColor: Colors.blueGrey[800],
        accentColor: Colors.blueAccent,
        fontFamily: 'Montserrat',
      ),
      home: MyHomePage(),
    );
  }
}
반응형