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-16 01:25:47 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
78a8147c631279c00621442ce6ee9b52107ff03e
78a8147c
1 parent
d8b8fa39
[frontend]
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
111 additions
and
25 deletions
frontend/README.md
frontend/flutter_application_1/android/app/src/main/AndroidManifest.xml
frontend/flutter_application_1/lib/src/screens/DashBoard.dart
frontend/flutter_application_1/lib/src/screens/SettingPage.dart
frontend/flutter_application_1/lib/src/screens/SettingPage/Alarm.dart
frontend/flutter_application_1/lib/src/screens/SettingPage/Bluetooth.dart
frontend/flutter_application_1/lib/src/screens/SettingPage/InformationModify.dart
frontend/flutter_application_1/pubspec.lock
frontend/flutter_application_1/pubspec.yaml
frontend/flutter_application_1/test/widget_test.dart
frontend/README.md
View file @
78a8147
...
...
@@ -48,4 +48,6 @@ appbar 관련 디자인은 추후 구현 예정
### 2021-05-15
+
회원 정보 수정 Page 구현
+
API 연동 중에 추가로 개발 예정
\ No newline at end of file
+
API 연동 중에 추가로 개발 예정
+
build용 파일 구현
...
...
frontend/flutter_application_1/android/app/src/main/AndroidManifest.xml
View file @
78a8147
...
...
@@ -8,10 +8,12 @@
FlutterApplication and put your custom class here. -->
<uses-permission
android:name=
"android.permission.RECEIVE_BOOT_COMPLETED"
/>
<uses-permission
android:name=
"android.permission.VIBRATE"
/>
<uses-permission
android:name=
"android.permission.VIBRATE"
/>
<uses-permission
android:name=
"android.permission.BLUETOOTH"
/>
<uses-permission
android:name=
"android.permission.BLUETOOTH_ADMIN"
/>
<uses-permission
android:name=
"android.permission.ACCESS_COARSE_LOCATION"
/>
<application
android:name=
"io.flutter.app.FlutterApplication"
android:label=
"
flutter_application_1
"
android:label=
"
Smart_Medicine_Box
"
android:icon=
"@mipmap/ic_launcher"
>
<activity
android:name=
".MainActivity"
...
...
frontend/flutter_application_1/lib/src/screens/DashBoard.dart
View file @
78a8147
import
'package:flutter/material.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter_application_1/src/screens/SettingPage.dart'
;
import
'package:Smart_Medicine_Box/src/screens/SettingPage.dart'
;
class
DashBoard
extends
StatefulWidget
{
int
pageNumber
=
1
;
...
...
frontend/flutter_application_1/lib/src/screens/SettingPage.dart
View file @
78a8147
import
'package:flutter/material.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter_application_1/src/screens/DashBoard.dart'
;
import
'../shared/colors.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:flutter_application_1/src/screens/SettingPage/Alarm.dart'
;
import
'package:flutter_application_1/src/screens/SettingPage/Bluetooth.dart'
;
import
'package:flutter_application_1/src/screens/SettingPage/DEVInformation.dart'
;
import
'package:flutter_application_1/src/screens/SettingPage/InformationModify.dart'
;
import
'package:Smart_Medicine_Box/src/screens/DashBoard.dart'
;
import
'package:Smart_Medicine_Box/src/screens/SettingPage/Alarm.dart'
;
import
'package:Smart_Medicine_Box/src/screens/SettingPage/Bluetooth.dart'
;
import
'package:Smart_Medicine_Box/src/screens/SettingPage/DEVInformation.dart'
;
import
'package:Smart_Medicine_Box/src/screens/SettingPage/InformationModify.dart'
;
class
SettingPage
extends
StatefulWidget
{
@override
...
...
frontend/flutter_application_1/lib/src/screens/SettingPage/Alarm.dart
View file @
78a8147
...
...
@@ -4,8 +4,8 @@ import 'package:shared_preferences/shared_preferences.dart';
import
'package:flutter/cupertino.dart'
;
import
'package:flutter_datetime_picker/flutter_datetime_picker.dart'
;
import
'package:flutter_local_notifications/flutter_local_notifications.dart'
;
import
'package:
flutter_application_1
/src/screens/SettingPage.dart'
;
import
'package:
flutter_application_1
/src/screens/SettingPage/customTimepicker.dart'
;
import
'package:
Smart_Medicine_Box
/src/screens/SettingPage.dart'
;
import
'package:
Smart_Medicine_Box
/src/screens/SettingPage/customTimepicker.dart'
;
final
FlutterLocalNotificationsPlugin
flutterLocalNotificationsPlugin
=
FlutterLocalNotificationsPlugin
();
...
...
frontend/flutter_application_1/lib/src/screens/SettingPage/Bluetooth.dart
View file @
78a8147
import
'package:flutter/material.dart'
;
import
'package:flutter/services.dart'
;
import
'../../shared/colors.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:Smart_Medicine_Box/src/screens/SettingPage.dart'
;
import
'package:flutter_blue/flutter_blue.dart'
;
class
Bluetooth
extends
StatefulWidget
{
@override
_BluetoothState
createState
()
=>
_BluetoothState
();
}
FlutterBlue
flutterBlue
;
class
_BluetoothState
extends
State
<
Bluetooth
>
{
Widget
build
(
BuildContext
context
)
{
return
MaterialApp
(
title:
'Welcome to Flutter'
,
home:
Scaffold
(
appBar:
AppBar
(
title:
Text
(
'Welcome to Flutter'
),
iconTheme:
IconThemeData
(
color:
Colors
.
black
),
backgroundColor:
Colors
.
white
,
title:
Text
(
'Smart Medicine Box'
,
style:
TextStyle
(
color:
Colors
.
black
,
fontSize:
20
,
fontFamily:
'Noto'
,
fontWeight:
FontWeight
.
bold
),
),
actions:
[
IconButton
(
icon:
Icon
(
Icons
.
settings
,
color:
Colors
.
black
,
),
onPressed:
()
{
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
BuildContext
context
)
=>
SettingPage
(),
));
},
)
],
),
drawer:
Drawer
(
child:
ListView
(
children:
[
DrawerHeader
(
child:
Text
(
'Drawer Header'
),
decoration:
BoxDecoration
(
color:
Colors
.
blue
,
),
),
ListTile
(
title:
Text
(
'Test 1'
),
onTap:
()
{},
),
ListTile
(
title:
Text
(
'Test 2'
),
onTap:
()
{},
),
ListTile
(
title:
Text
(
'Test 3'
),
onTap:
()
{},
),
],
),
),
body:
Center
(
child:
Text
(
'약병 내부 페이지 작업 영역'
),
...
...
frontend/flutter_application_1/lib/src/screens/SettingPage/InformationModify.dart
View file @
78a8147
import
'package:flutter/material.dart'
;
import
'package:flutter/services.dart'
;
import
'package:
flutter_application_1
/src/screens/SettingPage.dart'
;
import
'package:
Smart_Medicine_Box
/src/screens/SettingPage.dart'
;
class
InformationModify
extends
StatefulWidget
{
@override
...
...
frontend/flutter_application_1/pubspec.lock
View file @
78a8147
...
...
@@ -43,6 +43,20 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0-nullsafety.3"
convert:
dependency: transitive
description:
name: convert
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
cupertino_icons:
dependency: "direct main"
description:
name: cupertino_icons
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3"
fake_async:
dependency: transitive
description:
...
...
@@ -64,11 +78,25 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "5.2.1"
fixnum:
dependency: transitive
description:
name: fixnum
url: "https://pub.dartlang.org"
source: hosted
version: "0.10.11"
flutter:
dependency: "direct main"
description: flutter
source: sdk
version: "0.0.0"
flutter_blue:
dependency: "direct main"
description:
name: flutter_blue
url: "https://pub.dartlang.org"
source: hosted
version: "0.7.3"
flutter_datetime_picker:
dependency: "direct main"
description:
...
...
@@ -212,13 +240,20 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.13"
protobuf:
dependency: transitive
description:
name: protobuf
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.3"
rxdart:
dependency: "direct main"
description:
name: rxdart
url: "https://pub.dartlang.org"
source: hosted
version: "0.2
3
.1"
version: "0.2
4
.1"
shared_preferences:
dependency: "direct main"
description:
...
...
@@ -345,4 +380,4 @@ packages:
version: "0.1.2"
sdks:
dart: ">=2.10.0-110 <2.11.0"
flutter: ">=1.12.13+hotfix.
5
<2.0.0"
flutter: ">=1.12.13+hotfix.
6
<2.0.0"
...
...
frontend/flutter_application_1/pubspec.yaml
View file @
78a8147
name
:
flutter_application_1
name
:
Smart_Medicine_Box
description
:
A new Flutter project.
# The following line prevents the package from being accidentally published to
...
...
@@ -28,11 +28,13 @@ dependencies:
page_transition
:
'
^1.1.5'
mailer
:
'
^3.0.4'
flutter_local_notifications
:
^1.4.4+5
rxdart
:
^0.2
3.1
rxdart
:
^0.2
4.0
flutter_datetime_picker
:
^1.3.4
timezone
:
^0.6.0
intl
:
^0.16.1
shared_preferences
:
^0.5.6+1
flutter_blue
:
^0.7.2
cupertino_icons
:
^0.1.3
dev_dependencies
:
flutter_test
:
...
...
frontend/flutter_application_1/test/widget_test.dart
View file @
78a8147
...
...
@@ -8,7 +8,7 @@
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:
flutter_application_1
/main.dart'
;
import
'package:
Smart_Medicine_Box
/main.dart'
;
void
main
(
)
{
testWidgets
(
'Counter increments smoke test'
,
(
WidgetTester
tester
)
async
{
...
...
Please
register
or
login
to post a comment