11 Commits
5 changed files with 106 additions and 40 deletions

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
1. Install Flutter SDK
2. Install Android SDK
3. Clone Repo
4. Run `compile.sh`
5. Check `releases/` Folder
+59
View File
@@ -0,0 +1,59 @@
# Changelog
## 1.1.0 (In Development)
Usability improvements.
- move switchtile back to its own row
- allows showing text without crowding out or hiding minutes field
## 1.0.1 (2026-09-29)
Fixes for issues on hardware devices.
- fix internet access on some devices
- fix SSL certificate issues on older devices
- fix null minutes making a null alarm time
- fix enabling alarm with no time set yet
- enhance the icon for older devices
- upgrade SDKs and compilers
## 1.0.0 (2026-09-28)
Completed the app for Android which also brings many benefits to the Linux version.
**Android**
- upgraded from single notification to alarm
- platform specific APK to help reduce file size
**Both**
- automatic dark theme if system is set to dark
- input validation on sunset time and minutes
- alarm now properly resets if time is changed
- add optional time picker for sunset time field
- only do the permission request on Android
- more consistent verbiage and text styling
- enhanced icon and added monochrome
- added file necessary for F-Droid repo
- updated flutter package versions
This release has been tested tested tested, but only on emulators (x86_64). If you have any issues, please reach out.
From now on only the arm64-v8a APK will be provided.
## 0.1.2 (2026-09-28)
- add icon
- fix notification on Android
- allow minutes to be 0
- show toast if invalid minute value is provided
- enhance compile.sh to allow easier publications
- other small fixes and enhancements
## 0.1.1 (2026-09-13)
Linux version tested and now has alarm notification working.
Android still needs testing and fixes.
+16
View File
@@ -0,0 +1,16 @@
# To Be Done
Upcoming feature list. All notes subject to change.
## v1.1.0
- Cancel and reschedule alarm when minutes are changed.
- Add languages (Spanish, Croatian).
## v1.2.0
- Change time grabber to a checkbox so that it stays up to date.
## 2.0.0 (In Design)
- Add sunrise section and retitle app to Sunshine Alarm.
+10
View File
@@ -61,6 +61,8 @@ flutter build linux ${BUILD_OPTIONS[@]}
set +x set +x
log "Saving Linux Bundle..." log "Saving Linux Bundle..."
log "- zip"
filename=$RELEASE.linux-bundle.zip filename=$RELEASE.linux-bundle.zip
if [[ -e $filename ]]; then if [[ -e $filename ]]; then
rm -v $filename rm -v $filename
@@ -68,6 +70,14 @@ fi
zip -r $filename build/linux/x64/release/bundle/* zip -r $filename build/linux/x64/release/bundle/*
ls -sh $filename ls -sh $filename
#log "- tar"
#filename=$RELEASE.linux-bundle.tar
#if [[ -e "$filename"* ]]; then
# rm -v $filename*
#fi
#zip -r $filename build/linux/x64/release/bundle/*
#ls -sh $filename
# Android # Android
log "Building Universal APK..." log "Building Universal APK..."
+16 -40
View File
@@ -17,16 +17,6 @@ import 'dart:convert';
//import 'package:http/http.dart' as http; //import 'package:http/http.dart' as http;
import 'package:flutter/services.dart' show rootBundle; import 'package:flutter/services.dart' show rootBundle;
/// TBD:
/// - Add other languages (Spanish, Croatian)
/// v1.1.0
/// - Move the switchtile back to its own row so that it handles titles better.
/// v1.2.0
/// - Change sunset grabber to checkbox and retrieve it each alarm or open.
/// v2.0.0
/// - Add sunrise section and change app name to Sunshine Alarm?
/// :TBD
void main() async { void main() async {
WidgetsFlutterBinding.ensureInitialized(); WidgetsFlutterBinding.ensureInitialized();
@@ -272,7 +262,8 @@ class _HomeScreenState extends State<HomeScreen> {
); );
} else if (Platform.isAndroid) { } else if (Platform.isAndroid) {
// Get the Notifications permission: // Get the Notifications permission:
final android = _notifications final android =
_notifications
.resolvePlatformSpecificImplementation< .resolvePlatformSpecificImplementation<
AndroidFlutterLocalNotificationsPlugin AndroidFlutterLocalNotificationsPlugin
>(); >();
@@ -493,7 +484,8 @@ class _HomeScreenState extends State<HomeScreen> {
'${picked.hour.toString().padLeft(2, '0')}:' '${picked.hour.toString().padLeft(2, '0')}:'
'${picked.minute.toString().padLeft(2, '0')}'; '${picked.minute.toString().padLeft(2, '0')}';
setState( setState(
() => _sunsetErrorText = _validateTime( () =>
_sunsetErrorText = _validateTime(
_sunsetController.text, _sunsetController.text,
), ),
); );
@@ -523,7 +515,8 @@ class _HomeScreenState extends State<HomeScreen> {
), ),
const SizedBox(width: 8), const SizedBox(width: 8),
IconButton.filledTonal( IconButton.filledTonal(
icon: _loading icon:
_loading
? const SizedBox( ? const SizedBox(
width: 20, width: 20,
height: 20, height: 20,
@@ -548,12 +541,7 @@ class _HomeScreenState extends State<HomeScreen> {
const SizedBox(height: 8), const SizedBox(height: 8),
// --- Minutes before --- // --- Minutes before ---
Row( TextField(
children: [
if (!_alarmEnabled)
Expanded(
flex: 1, // _validTime ? 3 : 2,
child: TextField(
controller: _minutesController, controller: _minutesController,
keyboardType: TextInputType.number, keyboardType: TextInputType.number,
decoration: InputDecoration( decoration: InputDecoration(
@@ -574,27 +562,16 @@ class _HomeScreenState extends State<HomeScreen> {
}); });
}, },
), ),
),
//Expanded(
// flex: 3,
// child: Center(
// child:
// _validTime ? Text("") : Text("Sunset Time Needed") ,
// ),
//),
// --- Toggle --- // --- Toggle ---
Expanded( SwitchListTile(
flex: 1, //_validTime ? 2 : 5,
child: SwitchListTile(
title: Center( title: Center(
child: Text( child: Text(
_validTime _validTime
? _alarmEnabled ? _alarmEnabled
? "Sunset Alarm Enabled" ? "Sunset Alarm Enabled"
: "" //"Enable" : "Enable"
: "", // "Disabled", : "Disabled",
), ),
), ),
subtitle: Center( subtitle: Center(
@@ -602,16 +579,13 @@ class _HomeScreenState extends State<HomeScreen> {
_validTime _validTime
? _alarmEnabled ? _alarmEnabled
? "${_minutesBefore} Minute${_plural} Before @ $_alarmDisplayTime" ? "${_minutesBefore} Minute${_plural} Before @ $_alarmDisplayTime"
: "" //"Sunset Alarm" : "Sunset Alarm"
: "", //"Enter Valid Time", : "Enter Valid Time",
), ),
), ),
value: _validTime ? _alarmEnabled : false, value: _validTime ? _alarmEnabled : false,
onChanged: _validTime ? _toggleAlarm : null, onChanged: _validTime ? _toggleAlarm : null,
), ),
),
],
),
], ],
), ),
), ),
@@ -639,7 +613,8 @@ final _plugin = FlutterLocalNotificationsPlugin();
Future<void> requestPermissions() async { Future<void> requestPermissions() async {
if (Platform.isAndroid) { if (Platform.isAndroid) {
final android = _plugin final android =
_plugin
.resolvePlatformSpecificImplementation< .resolvePlatformSpecificImplementation<
AndroidFlutterLocalNotificationsPlugin AndroidFlutterLocalNotificationsPlugin
>(); >();
@@ -652,7 +627,8 @@ Future<void> requestPermissions() async {
} }
} }
final android = _plugin final android =
_plugin
.resolvePlatformSpecificImplementation< .resolvePlatformSpecificImplementation<
AndroidFlutterLocalNotificationsPlugin AndroidFlutterLocalNotificationsPlugin
>(); >();