-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Kheemwel/dev
feat: v2.0 release candidate 1
- Loading branch information
Showing
103 changed files
with
4,749 additions
and
616 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.1 KB
(28%)
android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.64 KB
(130%)
android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+5.2 KB
(290%)
android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.12 KB
(29%)
android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+848 Bytes
(120%)
android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.86 KB
(260%)
android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.81 KB
(25%)
android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.27 KB
(130%)
android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8.47 KB
(300%)
android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-6.5 KB
(31%)
android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+5.95 KB
(130%)
android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+16.2 KB
(340%)
android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-13.7 KB
(23%)
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+10.8 KB
(140%)
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+25.9 KB
(340%)
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import 'package:intl/intl.dart'; | ||
|
||
extension DateToString on DateTime { | ||
/// Format DateTime to a string using the provided format | ||
String formatToString({String format = 'MM/dd/yyyy'}) { | ||
return DateFormat(format).format(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
extension DoubleFormatting on double { | ||
String formatToString() { | ||
final formattedValue = toStringAsFixed(2); // Format with two decimal places | ||
final withoutTrailingZeros = formattedValue.replaceAll( | ||
RegExp(r'\.?0+$'), ''); // Remove decimal places if it is only zero | ||
return withoutTrailingZeros; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:intl/intl.dart'; | ||
|
||
extension TimeOfDayExtensions on TimeOfDay { | ||
/// Convert TimeOfDay to DateTime for formatting | ||
DateTime _toDateTime() { | ||
final now = DateTime.now(); | ||
return DateTime(now.year, now.month, now.day, hour, minute); | ||
} | ||
|
||
/// Format TimeOfDay to a string using the provided format | ||
String formatToString({String format = 'HH:mm'}) { | ||
final dateTime = _toDateTime(); | ||
return DateFormat(format).format(dateTime); | ||
} | ||
|
||
/// Check if the time is after the inputted TimeOfDay | ||
bool isAfter(TimeOfDay other) { | ||
final now = DateTime.now(); | ||
final thisDateTime = DateTime(now.year, now.month, now.day, hour, minute); | ||
final otherDateTime = DateTime(now.year, now.month, now.day, other.hour, other.minute); | ||
|
||
return thisDateTime.isAfter(otherDateTime); | ||
} | ||
|
||
/// Check if the time is before the inputted TimeOfDay | ||
bool isBefore(TimeOfDay other) { | ||
final now = DateTime.now(); | ||
final thisDateTime = DateTime(now.year, now.month, now.day, hour, minute); | ||
final otherDateTime = DateTime(now.year, now.month, now.day, other.hour, other.minute); | ||
|
||
return thisDateTime.isBefore(otherDateTime); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const appLogo = 'assets/images/app_logo.png'; | ||
const clappingHands = 'assets/images/clapping_hands.png'; | ||
const partyCone = 'assets/images/party_cone.png'; | ||
|
||
const iconHome = 'assets/icons/icon_home.svg'; | ||
const iconDelete = 'assets/icons/icon_delete.svg'; | ||
const iconCalendar = 'assets/icons/icon_calendar.svg'; | ||
const iconBack = 'assets/icons/icon_back.svg'; | ||
const iconGuideArrowUp = 'assets/icons/icon_guide_arrow_up.svg'; | ||
const iconGuideArrowDown = 'assets/icons/icon_guide_arrow_down.svg'; | ||
|
||
const militaryHourFormat = 'HH:mm'; | ||
|
||
/// List of date formats | ||
final Map<String, String> dateFormats = { | ||
'MM/dd/yyyy': 'MM/dd/yyyy (12/25/2024)', | ||
'yyyy-MM-dd': 'yyyy-MM-dd (2024-12-25)', | ||
'MM-dd-yyyy': 'MM-dd-yyyy (12-25-2024)', | ||
'MMM dd, yyyy': 'MMM dd, yyyy (Dec 25, 2024)', | ||
'MMMM dd, yyyy': 'MMMM dd, yyyy (December 25, 2024)', | ||
'EEEE, MMMM dd, yyyy': 'EEEE, MMMM dd, yyyy (wednesday, December, 25, 2024)', | ||
}; | ||
|
||
/// List of time formats | ||
final Map<String, String> timeFormats = {'h:mm a': '12-Hour Clock', 'HH:mm': '24-Hour Clock'}; |
Oops, something went wrong.