mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-08-06 14:51:08 +08:00
18 lines
477 B
Dart
18 lines
477 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
void main() {
|
|
runApp(new MaterialApp(
|
|
home: new Scaffold(
|
|
appBar: new AppBar(
|
|
title: new Text("Using Theme"),
|
|
),
|
|
body: new Container(
|
|
child: new Center(
|
|
child: new Text("Hello World!", style: new TextStyle(color: Colors.white),),
|
|
),
|
|
decoration: new BoxDecoration(color: Colors.purple)),
|
|
),
|
|
theme: new ThemeData(primarySwatch: Colors.deepPurple),
|
|
));
|
|
}
|