고원빈

dd

......@@ -9,17 +9,28 @@ class DashBoard extends StatefulWidget {
}
class _DashBoardState extends State<DashBoard> {
Widget build(BuildContext context) {
return MaterialApp(
title: 'Welcome to Flutter',
home: Scaffold(
appBar: AppBar(
title: Text('Welcome to Flutter'),
),
body: Center(
child: Text('DashBoard 작업 영역'),
),
final Size size = MediaQuery.of(context).size;
return Scaffold(
backgroundColor: Color(0xffe5f4ff),
appBar: PreferredSize(
preferredSize: Size.fromHeight(65),
child:Container(
padding : const EdgeInsets.fromLTRB(0,10,0,0),
color: Colors.white,
child : AppBar(
backgroundColor: Colors.white,
actions: <Widget> [
Container (
width : size.width * 0.2
)
],
))
),
);
)
}
}
......
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import '../shared/colors.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class InnerInformation extends StatefulWidget {
@override
_InnerInformationState createState() => _InnerInformationState();
}
class _InnerInformationState extends State<InnerInformation> {
Widget build(BuildContext context) {
return MaterialApp(
title: 'Welcome to Flutter',
home: Scaffold(
appBar: AppBar(
title: Text('Welcome to Flutter'),
),
body: Center(
child: Text('약병 내부 페이지 작업 영역'),
),
),
);
}
}
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import '../shared/colors.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class MainPage extends StatefulWidget {
@override
_MainPageState createState() => _MainPageState();
}
class _MainPageState extends State<MainPage> {
Widget build(BuildContext context) {
return MaterialApp(
title: 'Welcome to Flutter',
home: Scaffold(
appBar: AppBar(
title: Text('Welcome to Flutter'),
),
body: Center(
child: Text('Main PAge 작업 영역'),
),
),
);
}
}
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import '../shared/colors.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class OuterInformation extends StatefulWidget {
@override
_OuterInformationState createState() => _OuterInformationState();
}
class _OuterInformationState extends State<OuterInformation> {
Widget build(BuildContext context) {
return MaterialApp(
title: 'Welcome to Flutter',
home: Scaffold(
appBar: AppBar(
title: Text('Welcome to Flutter'),
),
body: Center(
child: Text('약병 내부 페이지 작업 영역'),
),
),
);
}
}
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import '../shared/colors.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class SettingPage extends StatefulWidget {
@override
_SettingPageState createState() => _SettingPageState();
}
class _SettingPageState extends State<SettingPage> {
Widget build(BuildContext context) {
return MaterialApp(
title: 'Welcome to Flutter',
home: Scaffold(
appBar: AppBar(
title: Text('Welcome to Flutter'),
),
body: Center(
child: Text('Setting page 작업 영역'),
),
),
);
}
}
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import './DashBoard.dart';
class SignInPage extends StatefulWidget {
@override
......@@ -29,16 +30,6 @@ class _SignInPageState extends State<SignInPage> {
}
},
child: Scaffold(
// appBar: AppBar(
// elevation: 0,
// backgroundColor: white,
// title: Padding(
// padding: const EdgeInsets.fromLTRB(0, 0, 0, 0),
// child: Text('',
// textScaleFactor: 1.0,
// style: TextStyle(
// color: Colors.grey, fontFamily: 'Noto', fontSize: 16)),
// )),
body: Builder(
builder: (BuildContext context) {
return ListView(
......@@ -171,6 +162,20 @@ class _SignInPageState extends State<SignInPage> {
],
);
});
} else {
emailController.text =
emailController.text.trim();
passwordController.text =
passwordController.text.trim();
saveMessage = "로그인 성공";
if (saveMessage == "로그인 성공") {
Navigator.push(
context,
MaterialPageRoute(
builder: (BuildContext context) =>
DashBoard(),
));
}
}
},
shape: RoundedRectangleBorder(
......