Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
RIT_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
고원빈
2021-05-30 13:39:45 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
17518a0f319ed1eeb571ca6e13721242f6663825
17518a0f
1 parent
665b2ff2
[frontend] 약 검색 버튼 추가
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
frontend/flutter_application_1/lib/src/screens/DashBoard.dart
frontend/flutter_application_1/lib/src/screens/DashBoard.dart
View file @
17518a0
...
...
@@ -10,6 +10,7 @@ import 'models/Bottle.dart';
import
'models/Medicine.dart'
;
import
'package:Smart_Medicine_Box/src/screens/SettingPage.dart'
;
import
'Register/BottleList.dart'
;
import
'Register/SearchMedicine.dart'
;
class
DashBoard
extends
StatefulWidget
{
int
pageNumber
;
...
...
@@ -351,6 +352,40 @@ Widget mainpage(BuildContext context) {
],
),
),
GestureDetector
(
child:
Container
(
width:
size
.
width
*
0.8
,
height:
46
,
margin:
EdgeInsets
.
only
(
bottom:
0
),
child:
FlatButton
(
padding:
EdgeInsets
.
fromLTRB
(
0
,
5
,
0
,
5
),
onPressed:
()
async
{
String
bottleid
=
await
UserSecureStorage
.
getBottleId
();
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
BuildContext
context
)
=>
SearchMedicine
(
bottleId:
bottleid
,
),
),
);
},
child:
Text
(
'약 검색'
,
textScaleFactor:
1.0
,
style:
TextStyle
(
color:
Colors
.
white
,
fontSize:
16
,
fontFamily:
'Noto'
,
fontWeight:
FontWeight
.
bold
),
),
color:
Color
(
0xff1674f6
),
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
50
)),
),
),
),
],
),
);
...
...
Please
register
or
login
to post a comment