mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-05-22 15:36:26 +08:00
small changes, updated readme
This commit is contained in:
@ -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
BIN
using_custom_fonts/demo_img.jpg
Executable file
Binary file not shown.
After Width: | Height: | Size: 228 KiB |
@ -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
BIN
using_gradient/demo_img.jpg
Executable file
Binary file not shown.
After Width: | Height: | Size: 192 KiB |
@ -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