mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-09-20 23:36:36 +08:00
small changes, updated readme
This commit is contained in:
@ -20,6 +20,7 @@ void main() {
|
||||
// Add Text
|
||||
child: new Text(
|
||||
"Hello World!",
|
||||
style: new TextStyle(color: Colors.white),
|
||||
),
|
||||
),
|
||||
// Set background
|
||||
|
@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
|
||||
LinearGradient getCustomGradient() {
|
||||
// Define a Linear Gradient
|
||||
return new LinearGradient(
|
||||
colors: [Colors.lightBlueAccent, Colors.blueAccent],
|
||||
colors: [Colors.pink, Colors.blueAccent],
|
||||
begin: const FractionalOffset(0.0, 0.0),
|
||||
end: const FractionalOffset(0.6, 0.0),
|
||||
stops: [0.0, 0.6],
|
||||
|
Reference in New Issue
Block a user