mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-05-24 17:00:25 +08:00
implemented using_theme example
This commit is contained in:
17
using_theme/lib/main.dart
Normal file
17
using_theme/lib/main.dart
Normal file
@ -0,0 +1,17 @@
|
||||
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),
|
||||
));
|
||||
}
|
Reference in New Issue
Block a user