Showing
6 changed files
with
136 additions
and
20 deletions
... | @@ -9,17 +9,28 @@ class DashBoard extends StatefulWidget { | ... | @@ -9,17 +9,28 @@ class DashBoard extends StatefulWidget { |
9 | } | 9 | } |
10 | 10 | ||
11 | class _DashBoardState extends State<DashBoard> { | 11 | class _DashBoardState extends State<DashBoard> { |
12 | + | ||
12 | Widget build(BuildContext context) { | 13 | Widget build(BuildContext context) { |
13 | - return MaterialApp( | 14 | + final Size size = MediaQuery.of(context).size; |
14 | - title: 'Welcome to Flutter', | 15 | + return Scaffold( |
15 | - home: Scaffold( | 16 | + backgroundColor: Color(0xffe5f4ff), |
16 | - appBar: AppBar( | 17 | + appBar: PreferredSize( |
17 | - title: Text('Welcome to Flutter'), | 18 | + preferredSize: Size.fromHeight(65), |
18 | - ), | 19 | + child:Container( |
19 | - body: Center( | 20 | + padding : const EdgeInsets.fromLTRB(0,10,0,0), |
20 | - child: Text('DashBoard 작업 영역'), | 21 | + color: Colors.white, |
21 | - ), | 22 | + child : AppBar( |
23 | + backgroundColor: Colors.white, | ||
24 | + actions: <Widget> [ | ||
25 | + Container ( | ||
26 | + width : size.width * 0.2 | ||
27 | + | ||
28 | + ) | ||
29 | + | ||
30 | + ], | ||
31 | + | ||
32 | + )) | ||
22 | ), | 33 | ), |
23 | - ); | 34 | + ) |
24 | } | 35 | } |
25 | } | 36 | } | ... | ... |
1 | +import 'package:flutter/material.dart'; | ||
2 | +import 'package:flutter/services.dart'; | ||
3 | +import '../shared/colors.dart'; | ||
4 | +import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
5 | + | ||
6 | +class InnerInformation extends StatefulWidget { | ||
7 | + @override | ||
8 | + _InnerInformationState createState() => _InnerInformationState(); | ||
9 | +} | ||
10 | + | ||
11 | +class _InnerInformationState extends State<InnerInformation> { | ||
12 | + Widget build(BuildContext context) { | ||
13 | + return MaterialApp( | ||
14 | + title: 'Welcome to Flutter', | ||
15 | + home: Scaffold( | ||
16 | + appBar: AppBar( | ||
17 | + title: Text('Welcome to Flutter'), | ||
18 | + ), | ||
19 | + body: Center( | ||
20 | + child: Text('약병 내부 페이지 작업 영역'), | ||
21 | + ), | ||
22 | + ), | ||
23 | + ); | ||
24 | + } | ||
25 | +} |
1 | +import 'package:flutter/material.dart'; | ||
2 | +import 'package:flutter/services.dart'; | ||
3 | +import '../shared/colors.dart'; | ||
4 | +import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
5 | + | ||
6 | +class MainPage extends StatefulWidget { | ||
7 | + @override | ||
8 | + _MainPageState createState() => _MainPageState(); | ||
9 | +} | ||
10 | + | ||
11 | +class _MainPageState extends State<MainPage> { | ||
12 | + Widget build(BuildContext context) { | ||
13 | + return MaterialApp( | ||
14 | + title: 'Welcome to Flutter', | ||
15 | + home: Scaffold( | ||
16 | + appBar: AppBar( | ||
17 | + title: Text('Welcome to Flutter'), | ||
18 | + ), | ||
19 | + body: Center( | ||
20 | + child: Text('Main PAge 작업 영역'), | ||
21 | + ), | ||
22 | + ), | ||
23 | + ); | ||
24 | + } | ||
25 | +} |
1 | +import 'package:flutter/material.dart'; | ||
2 | +import 'package:flutter/services.dart'; | ||
3 | +import '../shared/colors.dart'; | ||
4 | +import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
5 | + | ||
6 | +class OuterInformation extends StatefulWidget { | ||
7 | + @override | ||
8 | + _OuterInformationState createState() => _OuterInformationState(); | ||
9 | +} | ||
10 | + | ||
11 | +class _OuterInformationState extends State<OuterInformation> { | ||
12 | + Widget build(BuildContext context) { | ||
13 | + return MaterialApp( | ||
14 | + title: 'Welcome to Flutter', | ||
15 | + home: Scaffold( | ||
16 | + appBar: AppBar( | ||
17 | + title: Text('Welcome to Flutter'), | ||
18 | + ), | ||
19 | + body: Center( | ||
20 | + child: Text('약병 내부 페이지 작업 영역'), | ||
21 | + ), | ||
22 | + ), | ||
23 | + ); | ||
24 | + } | ||
25 | +} |
1 | +import 'package:flutter/material.dart'; | ||
2 | +import 'package:flutter/services.dart'; | ||
3 | +import '../shared/colors.dart'; | ||
4 | +import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
5 | + | ||
6 | +class SettingPage extends StatefulWidget { | ||
7 | + @override | ||
8 | + _SettingPageState createState() => _SettingPageState(); | ||
9 | +} | ||
10 | + | ||
11 | +class _SettingPageState extends State<SettingPage> { | ||
12 | + Widget build(BuildContext context) { | ||
13 | + return MaterialApp( | ||
14 | + title: 'Welcome to Flutter', | ||
15 | + home: Scaffold( | ||
16 | + appBar: AppBar( | ||
17 | + title: Text('Welcome to Flutter'), | ||
18 | + ), | ||
19 | + body: Center( | ||
20 | + child: Text('Setting page 작업 영역'), | ||
21 | + ), | ||
22 | + ), | ||
23 | + ); | ||
24 | + } | ||
25 | +} |
1 | import 'package:flutter/material.dart'; | 1 | import 'package:flutter/material.dart'; |
2 | import 'package:flutter/services.dart'; | 2 | import 'package:flutter/services.dart'; |
3 | +import './DashBoard.dart'; | ||
3 | 4 | ||
4 | class SignInPage extends StatefulWidget { | 5 | class SignInPage extends StatefulWidget { |
5 | @override | 6 | @override |
... | @@ -29,16 +30,6 @@ class _SignInPageState extends State<SignInPage> { | ... | @@ -29,16 +30,6 @@ class _SignInPageState extends State<SignInPage> { |
29 | } | 30 | } |
30 | }, | 31 | }, |
31 | child: Scaffold( | 32 | child: Scaffold( |
32 | - // appBar: AppBar( | ||
33 | - // elevation: 0, | ||
34 | - // backgroundColor: white, | ||
35 | - // title: Padding( | ||
36 | - // padding: const EdgeInsets.fromLTRB(0, 0, 0, 0), | ||
37 | - // child: Text('', | ||
38 | - // textScaleFactor: 1.0, | ||
39 | - // style: TextStyle( | ||
40 | - // color: Colors.grey, fontFamily: 'Noto', fontSize: 16)), | ||
41 | - // )), | ||
42 | body: Builder( | 33 | body: Builder( |
43 | builder: (BuildContext context) { | 34 | builder: (BuildContext context) { |
44 | return ListView( | 35 | return ListView( |
... | @@ -171,6 +162,20 @@ class _SignInPageState extends State<SignInPage> { | ... | @@ -171,6 +162,20 @@ class _SignInPageState extends State<SignInPage> { |
171 | ], | 162 | ], |
172 | ); | 163 | ); |
173 | }); | 164 | }); |
165 | + } else { | ||
166 | + emailController.text = | ||
167 | + emailController.text.trim(); | ||
168 | + passwordController.text = | ||
169 | + passwordController.text.trim(); | ||
170 | + saveMessage = "로그인 성공"; | ||
171 | + if (saveMessage == "로그인 성공") { | ||
172 | + Navigator.push( | ||
173 | + context, | ||
174 | + MaterialPageRoute( | ||
175 | + builder: (BuildContext context) => | ||
176 | + DashBoard(), | ||
177 | + )); | ||
178 | + } | ||
174 | } | 179 | } |
175 | }, | 180 | }, |
176 | shape: RoundedRectangleBorder( | 181 | shape: RoundedRectangleBorder( | ... | ... |
-
Please register or login to post a comment