정리

(flutter) 테마지정

디벨로프로 2020. 2. 20. 09:40
반응형

import 'package:flutter/material.dart';

void main() => runApp(BMIApp());

class BMIApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData.dark().copyWith(
floatingActionButtonTheme:FloatingActionButtonThemeData(backgroundColor: Colors.red),
appBarTheme: AppBarTheme(color:Colors.red),
),
home: Scaffold(
appBar: AppBar(
title: const Text('ThemeData Demo'),

),
floatingActionButton: FloatingActionButton(
child: const Icon(Icons.add),
onPressed: () {},
),
body: Center(
child: Text(
'Button pressed 0 times',
),
),
),
);
}
}

'정리' 카테고리의 다른 글

그룹별로 데이터 출력하기(groupby, PARTITION BY)  (0) 2020.02.25
데이터베이스 실행 순서  (0) 2020.02.24
(플러터) 실로폰  (0) 2020.02.20
(flutter) MagicBall 만들기  (0) 2020.02.19
다트 정리(기본)  (0) 2020.02.17