Showing
1 changed file
with
35 additions
and
0 deletions
| ... | @@ -10,6 +10,7 @@ import 'models/Bottle.dart'; | ... | @@ -10,6 +10,7 @@ import 'models/Bottle.dart'; |
| 10 | import 'models/Medicine.dart'; | 10 | import 'models/Medicine.dart'; |
| 11 | import 'package:Smart_Medicine_Box/src/screens/SettingPage.dart'; | 11 | import 'package:Smart_Medicine_Box/src/screens/SettingPage.dart'; |
| 12 | import 'Register/BottleList.dart'; | 12 | import 'Register/BottleList.dart'; |
| 13 | +import 'Register/SearchMedicine.dart'; | ||
| 13 | 14 | ||
| 14 | class DashBoard extends StatefulWidget { | 15 | class DashBoard extends StatefulWidget { |
| 15 | int pageNumber; | 16 | int pageNumber; |
| ... | @@ -351,6 +352,40 @@ Widget mainpage(BuildContext context) { | ... | @@ -351,6 +352,40 @@ Widget mainpage(BuildContext context) { |
| 351 | ], | 352 | ], |
| 352 | ), | 353 | ), |
| 353 | ), | 354 | ), |
| 355 | + GestureDetector( | ||
| 356 | + child: Container( | ||
| 357 | + width: size.width * 0.8, | ||
| 358 | + height: 46, | ||
| 359 | + margin: EdgeInsets.only(bottom: 0), | ||
| 360 | + child: FlatButton( | ||
| 361 | + padding: EdgeInsets.fromLTRB(0, 5, 0, 5), | ||
| 362 | + onPressed: () async { | ||
| 363 | + String bottleid = | ||
| 364 | + await UserSecureStorage.getBottleId(); | ||
| 365 | + Navigator.push( | ||
| 366 | + context, | ||
| 367 | + MaterialPageRoute( | ||
| 368 | + builder: (BuildContext context) => SearchMedicine( | ||
| 369 | + bottleId: bottleid, | ||
| 370 | + ), | ||
| 371 | + ), | ||
| 372 | + ); | ||
| 373 | + }, | ||
| 374 | + child: Text( | ||
| 375 | + '약 검색', | ||
| 376 | + textScaleFactor: 1.0, | ||
| 377 | + style: TextStyle( | ||
| 378 | + color: Colors.white, | ||
| 379 | + fontSize: 16, | ||
| 380 | + fontFamily: 'Noto', | ||
| 381 | + fontWeight: FontWeight.bold), | ||
| 382 | + ), | ||
| 383 | + color: Color(0xff1674f6), | ||
| 384 | + shape: RoundedRectangleBorder( | ||
| 385 | + borderRadius: BorderRadius.circular(50)), | ||
| 386 | + ), | ||
| 387 | + ), | ||
| 388 | + ), | ||
| 354 | ], | 389 | ], |
| 355 | ), | 390 | ), |
| 356 | ); | 391 | ); | ... | ... |
-
Please register or login to post a comment