mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-05-22 07:26:19 +08:00
added using_gradient example
This commit is contained in:
24
using_gradient/lib/main.dart
Normal file
24
using_gradient/lib/main.dart
Normal file
@ -0,0 +1,24 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
void main() {
|
||||
runApp(new MaterialApp(
|
||||
// Title
|
||||
title: "Using Gradient",
|
||||
// Home
|
||||
home: new Scaffold(
|
||||
// Appbar
|
||||
appBar: new AppBar(
|
||||
// Title
|
||||
title: new Text("Using Gradient"),
|
||||
),
|
||||
// Body
|
||||
body: new Container(
|
||||
// Center the content
|
||||
child: new Center(
|
||||
// Add Text
|
||||
child: new Text(
|
||||
"Hello World!",
|
||||
),
|
||||
),
|
||||
))));
|
||||
}
|
Reference in New Issue
Block a user