small changes, updated readme

This commit is contained in:
Nishant Srivastava
2017-09-30 00:01:34 -07:00
parent 351b44db0e
commit 16b934585f
6 changed files with 14 additions and 9 deletions

View File

@ -1,8 +1,10 @@
# using_custom_fonts
# Using Custom Fonts
Example app showing implementing custom fonts as text style.
<img src="demo_img.jpg" height="600em" />
A new Flutter project.
## Getting Started
For help getting started with Flutter, view our online
[documentation](http://flutter.io/).
For help getting started with Flutter, view online [documentation](http://flutter.io/).

BIN
using_custom_fonts/demo_img.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

View File

@ -1,8 +1,10 @@
# using_gradient
# Using Gradients
Example app showing implementing gradient as a background.
<img src="demo_img.jpg" height="600em" />
A new Flutter project.
## Getting Started
For help getting started with Flutter, view our online
[documentation](http://flutter.io/).
For help getting started with Flutter, view online [documentation](http://flutter.io/).

BIN
using_gradient/demo_img.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

View File

@ -20,6 +20,7 @@ void main() {
// Add Text
child: new Text(
"Hello World!",
style: new TextStyle(color: Colors.white),
),
),
// Set background

View File

@ -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],