Showing
7 changed files
with
74 additions
and
4 deletions
... | @@ -37,3 +37,8 @@ appbar 관련 디자인은 추후 구현 예정 | ... | @@ -37,3 +37,8 @@ appbar 관련 디자인은 추후 구현 예정 |
37 | ![Screenshot_1620749274](/uploads/6fe43fa280007f97572a59f45e138b75/Screenshot_1620749274.png) | 37 | ![Screenshot_1620749274](/uploads/6fe43fa280007f97572a59f45e138b75/Screenshot_1620749274.png) |
38 | 38 | ||
39 | 39 | ||
40 | +### 2021-05-13 | ||
41 | ++ flutter notification 추가 알람 설정 완료 | ||
42 | ++ datetime picker widget을 이용하여 시간 선택 구현 예정 | ||
43 | ++ 알람 설정을 위한 Android Mainfest 설정 , 사용자 권한 요구 | ||
44 | + | ... | ... |
1 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" | 1 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
2 | package="com.example.flutter_application_1"> | 2 | package="com.example.flutter_application_1"> |
3 | + | ||
3 | <!-- io.flutter.app.FlutterApplication is an android.app.Application that | 4 | <!-- io.flutter.app.FlutterApplication is an android.app.Application that |
4 | calls FlutterMain.startInitialization(this); in its onCreate method. | 5 | calls FlutterMain.startInitialization(this); in its onCreate method. |
5 | In most cases you can leave this as-is, but you if you want to provide | 6 | In most cases you can leave this as-is, but you if you want to provide |
6 | additional functionality it is fine to subclass or reimplement | 7 | additional functionality it is fine to subclass or reimplement |
7 | FlutterApplication and put your custom class here. --> | 8 | FlutterApplication and put your custom class here. --> |
9 | + <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> | ||
10 | + <uses-permission android:name="android.permission.VIBRATE" /> | ||
11 | + <uses-permission android:name="android.permission.VIBRATE" /> | ||
8 | <application | 12 | <application |
9 | android:name="io.flutter.app.FlutterApplication" | 13 | android:name="io.flutter.app.FlutterApplication" |
10 | android:label="flutter_application_1" | 14 | android:label="flutter_application_1" |
... | @@ -37,7 +41,17 @@ | ... | @@ -37,7 +41,17 @@ |
37 | <action android:name="android.intent.action.MAIN"/> | 41 | <action android:name="android.intent.action.MAIN"/> |
38 | <category android:name="android.intent.category.LAUNCHER"/> | 42 | <category android:name="android.intent.category.LAUNCHER"/> |
39 | </intent-filter> | 43 | </intent-filter> |
44 | + | ||
45 | + | ||
40 | </activity> | 46 | </activity> |
47 | + <receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver"> | ||
48 | + <intent-filter> | ||
49 | + <action android:name="android.intent.action.BOOT_COMPLETED"/> | ||
50 | + <action android:name="android.intent.action.MY_PACKAGE_REPLACED"/> | ||
51 | + </intent-filter> | ||
52 | + </receiver> | ||
53 | + <receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" /> | ||
54 | + | ||
41 | <!-- Don't delete the meta-data below. | 55 | <!-- Don't delete the meta-data below. |
42 | This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> | 56 | This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> |
43 | <meta-data | 57 | <meta-data | ... | ... |
1 | +include ':app' |
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 'package:flutter_application_1/src/screens/SettingPage.dart'; | 3 | import 'package:flutter_application_1/src/screens/SettingPage.dart'; |
4 | -import '../shared/colors.dart'; | ||
5 | -import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
6 | 4 | ||
7 | class DashBoard extends StatefulWidget { | 5 | class DashBoard extends StatefulWidget { |
8 | int pageNumber = 1; | 6 | int pageNumber = 1; |
... | @@ -17,7 +15,6 @@ class _DashBoardState extends State<DashBoard> { | ... | @@ -17,7 +15,6 @@ class _DashBoardState extends State<DashBoard> { |
17 | 15 | ||
18 | Widget build(BuildContext context) { | 16 | Widget build(BuildContext context) { |
19 | _selectedIndex = widget.pageNumber; | 17 | _selectedIndex = widget.pageNumber; |
20 | - final Size size = MediaQuery.of(context).size; | ||
21 | 18 | ||
22 | var _tabs = [ | 19 | var _tabs = [ |
23 | ineerInformationpage(context), | 20 | ineerInformationpage(context), | ... | ... |
... | @@ -55,6 +55,27 @@ packages: | ... | @@ -55,6 +55,27 @@ packages: |
55 | description: flutter | 55 | description: flutter |
56 | source: sdk | 56 | source: sdk |
57 | version: "0.0.0" | 57 | version: "0.0.0" |
58 | + flutter_datetime_picker: | ||
59 | + dependency: "direct main" | ||
60 | + description: | ||
61 | + name: flutter_datetime_picker | ||
62 | + url: "https://pub.dartlang.org" | ||
63 | + source: hosted | ||
64 | + version: "1.5.0" | ||
65 | + flutter_local_notifications: | ||
66 | + dependency: "direct main" | ||
67 | + description: | ||
68 | + name: flutter_local_notifications | ||
69 | + url: "https://pub.dartlang.org" | ||
70 | + source: hosted | ||
71 | + version: "1.5.0+1" | ||
72 | + flutter_local_notifications_platform_interface: | ||
73 | + dependency: transitive | ||
74 | + description: | ||
75 | + name: flutter_local_notifications_platform_interface | ||
76 | + url: "https://pub.dartlang.org" | ||
77 | + source: hosted | ||
78 | + version: "1.0.1" | ||
58 | flutter_screenutil: | 79 | flutter_screenutil: |
59 | dependency: "direct main" | 80 | dependency: "direct main" |
60 | description: | 81 | description: |
... | @@ -130,6 +151,27 @@ packages: | ... | @@ -130,6 +151,27 @@ packages: |
130 | url: "https://pub.dartlang.org" | 151 | url: "https://pub.dartlang.org" |
131 | source: hosted | 152 | source: hosted |
132 | version: "1.9.2" | 153 | version: "1.9.2" |
154 | + platform: | ||
155 | + dependency: transitive | ||
156 | + description: | ||
157 | + name: platform | ||
158 | + url: "https://pub.dartlang.org" | ||
159 | + source: hosted | ||
160 | + version: "2.2.1" | ||
161 | + plugin_platform_interface: | ||
162 | + dependency: transitive | ||
163 | + description: | ||
164 | + name: plugin_platform_interface | ||
165 | + url: "https://pub.dartlang.org" | ||
166 | + source: hosted | ||
167 | + version: "1.0.3" | ||
168 | + rxdart: | ||
169 | + dependency: "direct main" | ||
170 | + description: | ||
171 | + name: rxdart | ||
172 | + url: "https://pub.dartlang.org" | ||
173 | + source: hosted | ||
174 | + version: "0.23.1" | ||
133 | sky_engine: | 175 | sky_engine: |
134 | dependency: transitive | 176 | dependency: transitive |
135 | description: flutter | 177 | description: flutter |
... | @@ -177,6 +219,13 @@ packages: | ... | @@ -177,6 +219,13 @@ packages: |
177 | url: "https://pub.dartlang.org" | 219 | url: "https://pub.dartlang.org" |
178 | source: hosted | 220 | source: hosted |
179 | version: "0.2.19-nullsafety.2" | 221 | version: "0.2.19-nullsafety.2" |
222 | + timezone: | ||
223 | + dependency: "direct main" | ||
224 | + description: | ||
225 | + name: timezone | ||
226 | + url: "https://pub.dartlang.org" | ||
227 | + source: hosted | ||
228 | + version: "0.6.1" | ||
180 | typed_data: | 229 | typed_data: |
181 | dependency: transitive | 230 | dependency: transitive |
182 | description: | 231 | description: |
... | @@ -193,3 +242,4 @@ packages: | ... | @@ -193,3 +242,4 @@ packages: |
193 | version: "2.1.0-nullsafety.3" | 242 | version: "2.1.0-nullsafety.3" |
194 | sdks: | 243 | sdks: |
195 | dart: ">=2.10.0-110 <2.11.0" | 244 | dart: ">=2.10.0-110 <2.11.0" |
245 | + flutter: ">=1.12.13+hotfix.5" | ... | ... |
... | @@ -27,7 +27,10 @@ dependencies: | ... | @@ -27,7 +27,10 @@ dependencies: |
27 | flutter_screenutil: ^0.7.0 | 27 | flutter_screenutil: ^0.7.0 |
28 | page_transition: '^1.1.5' | 28 | page_transition: '^1.1.5' |
29 | mailer: '^3.0.4' | 29 | mailer: '^3.0.4' |
30 | - | 30 | + flutter_local_notifications: ^1.4.4+5 |
31 | + rxdart: ^0.23.1 | ||
32 | + flutter_datetime_picker: ^1.3.4 | ||
33 | + timezone: ^0.6.0 | ||
31 | 34 | ||
32 | dev_dependencies: | 35 | dev_dependencies: |
33 | flutter_test: | 36 | flutter_test: | ... | ... |
-
Please register or login to post a comment