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-15 02:39:58 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8b4fa39b5c8f20165929f41bab1f3c7d9d6a4ef9
8b4fa39b
1 parent
73424670
[frontend] 2021-05-14
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
216 additions
and
2 deletions
frontend/README.md
frontend/flutter_application_1/lib/src/screens/SettingPage/Alarm.dart
frontend/flutter_application_1/lib/src/screens/SettingPage/customTimepicker.dart
frontend/flutter_application_1/pubspec.lock
frontend/flutter_application_1/pubspec.yaml
frontend/README.md
View file @
8b4fa39
...
...
@@ -42,3 +42,6 @@ appbar 관련 디자인은 추후 구현 예정
+
datetime picker widget을 이용하여 시간 선택 구현 예정
+
알람 설정을 위한 Android Mainfest 설정 , 사용자 권한 요구
### 2021-05-14
+
datetime picker 를 이용하여 알람 설정 완료
+
현재 알람 페이지와 알람 수정 페이지가 같은 곳에 위치 이에 따라 보이는 데이터만 존재하고 수정 여부를 묻는 것을 만들지 고민중
...
...
frontend/flutter_application_1/lib/src/screens/SettingPage/Alarm.dart
View file @
8b4fa39
This diff is collapsed. Click to expand it.
frontend/flutter_application_1/lib/src/screens/SettingPage/customTimepicker.dart
0 → 100644
View file @
8b4fa39
import
'package:flutter_datetime_picker/flutter_datetime_picker.dart'
;
class
CustomPicker
extends
CommonPickerModel
{
var
indexs
;
String
digits
(
int
value
,
int
length
)
{
return
'
$value
'
.
padLeft
(
length
,
"0"
);
}
CustomPicker
({
DateTime
currentTime
,
LocaleType
locale
})
:
super
(
locale:
LocaleType
.
ko
)
{
this
.
currentTime
=
currentTime
??
DateTime
.
now
();
var
_dayPeriod
=
0
;
this
.
setLeftIndex
(
this
.
currentTime
.
hour
);
this
.
setMiddleIndex
(
this
.
currentTime
.
minute
);
this
.
setRightIndex
(
_dayPeriod
);
_fillRightList
();
}
@override
String
leftStringAtIndex
(
int
index
)
{
if
(
index
>=
1
&&
index
<
13
)
{
return
this
.
digits
(
index
,
2
);
}
else
{
return
null
;
}
}
@override
String
middleStringAtIndex
(
int
index
)
{
if
(
index
>=
0
&&
index
<
60
)
{
return
this
.
digits
(
index
,
2
);
}
else
{
return
null
;
}
}
@override
String
rightStringAtIndex
(
int
index
)
{
if
(
index
==
0
)
{
return
'AM'
;
}
else
if
(
index
==
1
)
{
return
'PM'
;
}
return
null
;
}
void
_fillRightList
()
{
this
.
rightList
=
List
.
generate
(
2
,
(
int
index
)
{
return
'
$index
'
;
});
}
@override
void
setRightIndex
(
int
index
)
{
super
.
setRightIndex
(
index
);
indexs
=
index
;
_fillRightList
();
}
@override
String
leftDivider
()
{
return
":"
;
}
@override
String
rightDivider
()
{
return
" "
;
}
@override
List
<
int
>
layoutProportions
()
{
return
[
1
,
1
,
1
];
}
@override
DateTime
finalTime
()
{
var
leftindex
;
print
(
indexs
);
if
(
indexs
==
1
)
{
if
(
this
.
currentLeftIndex
()
==
12
){
leftindex
=
12
;
}
else
{
leftindex
=
this
.
currentLeftIndex
()
+
12
;
}
}
else
if
(
indexs
==
0
)
{
if
(
this
.
currentLeftIndex
()
==
12
){
leftindex
=
0
;
}
else
{
leftindex
=
this
.
currentLeftIndex
();
}
}
return
currentTime
.
isUtc
?
DateTime
.
utc
(
currentTime
.
year
,
currentTime
.
month
,
currentTime
.
day
,
leftindex
,
this
.
currentMiddleIndex
(),
this
.
currentRightIndex
())
:
DateTime
(
currentTime
.
year
,
currentTime
.
month
,
currentTime
.
day
,
leftindex
,
this
.
currentMiddleIndex
(),
this
.
currentRightIndex
());
}
}
frontend/flutter_application_1/pubspec.lock
View file @
8b4fa39
...
...
@@ -50,6 +50,20 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0-nullsafety.1"
ffi:
dependency: transitive
description:
name: ffi
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3"
file:
dependency: transitive
description:
name: file
url: "https://pub.dartlang.org"
source: hosted
version: "5.2.1"
flutter:
dependency: "direct main"
description: flutter
...
...
@@ -88,8 +102,13 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
intl
:
flutter_web_plugins
:
dependency: transitive
description: flutter
source: sdk
version: "0.0.0"
intl:
dependency: "direct main"
description:
name: intl
url: "https://pub.dartlang.org"
...
...
@@ -144,6 +163,27 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0-nullsafety.1"
path_provider_linux:
dependency: transitive
description:
name: path_provider_linux
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.1+2"
path_provider_platform_interface:
dependency: transitive
description:
name: path_provider_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.4"
path_provider_windows:
dependency: transitive
description:
name: path_provider_windows
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.4+3"
pedantic:
dependency: transitive
description:
...
...
@@ -165,6 +205,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.3"
process:
dependency: transitive
description:
name: process
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.13"
rxdart:
dependency: "direct main"
description:
...
...
@@ -172,6 +219,48 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.23.1"
shared_preferences:
dependency: "direct main"
description:
name: shared_preferences
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.12+4"
shared_preferences_linux:
dependency: transitive
description:
name: shared_preferences_linux
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.2+4"
shared_preferences_macos:
dependency: transitive
description:
name: shared_preferences_macos
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.1+11"
shared_preferences_platform_interface:
dependency: transitive
description:
name: shared_preferences_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.4"
shared_preferences_web:
dependency: transitive
description:
name: shared_preferences_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2+7"
shared_preferences_windows:
dependency: transitive
description:
name: shared_preferences_windows
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.2+3"
sky_engine:
dependency: transitive
description: flutter
...
...
@@ -240,6 +329,20 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0-nullsafety.3"
win32:
dependency: transitive
description:
name: win32
url: "https://pub.dartlang.org"
source: hosted
version: "1.7.4+1"
xdg_directories:
dependency: transitive
description:
name: xdg_directories
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2"
sdks:
dart: ">=2.10.0-110 <2.11.0"
flutter: ">=1.12.13+hotfix.5"
flutter: ">=1.12.13+hotfix.5
<2.0.0
"
...
...
frontend/flutter_application_1/pubspec.yaml
View file @
8b4fa39
...
...
@@ -31,6 +31,8 @@ dependencies:
rxdart
:
^0.23.1
flutter_datetime_picker
:
^1.3.4
timezone
:
^0.6.0
intl
:
^0.16.1
shared_preferences
:
^0.5.6+1
dev_dependencies
:
flutter_test
:
...
...
Please
register
or
login
to post a comment