File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change
1
+ import 'package:flutter/material.dart' ;
2
+ import 'color_const.dart' ;
3
+
4
+ const LinearGradient SIGNUP_BACKGROUND = LinearGradient (
5
+ begin: FractionalOffset (0.0 , 0.4 ),
6
+ end: FractionalOffset (0.9 , 0.7 ),
7
+ // Add one stop for each color. Stops should increase from 0 to 1
8
+ stops: [0.1 , 0.9 ],
9
+ colors: [
10
+ YELLOW ,
11
+ BLUE
12
+ ]
13
+ );
Original file line number Diff line number Diff line change 4
4
/// Email: niebin312@gmail.com
5
5
///
6
6
import "package:flutter/material.dart" ;
7
+ import '../../const/color_const.dart' ;
8
+ import '../../const/gradient_const.dart' ;
7
9
8
10
class SignPageOne extends StatefulWidget {
9
11
@override
@@ -14,10 +16,14 @@ class _SignOneState extends State<SignPageOne> {
14
16
@override
15
17
Widget build (BuildContext context) {
16
18
return Scaffold (
17
- appBar: AppBar (
18
- title: Text ("Sign up one" ),
19
+ body: Container (
20
+ decoration: BoxDecoration (
21
+ gradient: SIGNUP_BACKGROUND
22
+ ),
23
+ child: Center (
24
+ child: Text ("Start" ),
25
+ ),
19
26
),
20
- body: Text ("Sign up page one" ),
21
27
);
22
28
}
23
29
}
You can’t perform that action at this time.
0 commit comments