Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added analyze_out.txt
Binary file not shown.
98 changes: 98 additions & 0 deletions diff.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
commit 174d92667f3267e15d418d3f02dd13ef7512b4cb
Author: Amoghhosamane <amoghvarsh9614@gmail.com>
Date: Sat Feb 21 00:23:59 2026 +0530

feat: replace manual version string with VersionWidget (#56)

diff --git a/lib/home.dart b/lib/home.dart
index 543e4d1..8c490f3 100644
--- a/lib/home.dart
+++ b/lib/home.dart
@@ -29,7 +29,7 @@ import 'package:flutter/material.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:solidui/solidui.dart';
-import 'package:url_launcher/url_launcher.dart';
+import 'package:version_widget/version_widget.dart';

import 'package:innerpod/constants/colours.dart';
import 'package:innerpod/widgets/about.dart';
@@ -91,17 +91,14 @@ class HomeState extends State<Home> {

var _appVersion = '';

- final String _changelogUrl =
- 'https://github.com/Amoghhosamane/innerpod/blob/dev/CHANGELOG.md';
-
// Helper function to load the app name and version.

- Future<void> _loadAppInfo() async {
+ Future<void> _loadSettings() async {
final packageInfo = await PackageInfo.fromPlatform();
final prefs = await SharedPreferences.getInstance();
if (mounted) {
setState(() {
- _appVersion = packageInfo.version; // Set app version from package info
+ _appVersion = packageInfo.version;
_selectedIndex = prefs.getInt('selected_index') ?? 0;
});
}
@@ -111,9 +108,7 @@ class HomeState extends State<Home> {
void initState() {
super.initState();

- // Get the app name and version.
-
- _loadAppInfo();
+ _loadSettings();
}

// Track which item is selected in the nav bar.
@@ -162,34 +157,7 @@ class HomeState extends State<Home> {
),
backgroundColor: border,
actions: [
- Center(
- child: GestureDetector(
- onTap: () async {
- final url = Uri.parse(_changelogUrl);
- if (await canLaunchUrl(url)) {
- await launchUrl(url);
- }
- },
- child: Container(
- padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 2),
- decoration: BoxDecoration(
- color: Theme.of(context).colorScheme.primaryContainer,
- borderRadius: BorderRadius.circular(32),
- border: Border.all(
- color: Colors.white.withValues(alpha: 0.5),
- ),
- ),
- child: Text(
- 'v$_appVersion',
- style: TextStyle(
- color: Theme.of(context).colorScheme.onPrimaryContainer,
- fontSize: 10,
- fontWeight: FontWeight.bold,
- ),
- ),
- ),
- ),
- ),
+ Center(child: VersionWidget(version: _appVersion)),
const SizedBox(width: 8),
IconButton(
icon: const Icon(Icons.info_outline, size: 24),
diff --git a/pubspec.yaml b/pubspec.yaml
index 3432bdb..2c75f54 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -31,6 +31,7 @@ dependencies:
solidpod: ^0.11.0
solidui: ^0.2.0
url_launcher: ^6.3.0
+ version_widget: ^1.0.6
wakelock_plus: ^1.1.4

dependency_overrides:
Binary file added diffstat.txt
Binary file not shown.
22 changes: 22 additions & 0 deletions diffstat8.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
 .lycheeignore | 1 +
lib/constants/audio.dart | 4 +
lib/constants/colours.dart | 39 --
lib/constants/spacing.dart | 34 --
lib/home.dart | 203 +++++----
lib/main.dart | 96 +++--
lib/utils/ding_dong.dart | 1 +
lib/widgets/about.dart | 3 +-
lib/widgets/app_button.dart | 42 +-
lib/widgets/app_circular_countdown_timer.dart | 34 +-
lib/widgets/app_markdown_body.dart | 41 +-
lib/widgets/duration_selector.dart | 62 +++
lib/widgets/edit_session_dialog.dart | 87 ++++
lib/widgets/history.dart | 298 +++----------
lib/widgets/instructions.dart | 18 +-
lib/widgets/premium_text_field.dart | 119 +++++
lib/widgets/session_card.dart | 153 +++++++
lib/widgets/timer.dart | 597 +++++---------------------
lib/widgets/timer_buttons.dart | 117 +++++
lib/widgets/timer_logic.dart | 195 +++++++++
pubspec.yaml | 2 +
21 files changed, 1179 insertions(+), 967 deletions(-)
Binary file added gitlog.txt
Binary file not shown.
16 changes: 16 additions & 0 deletions gitlog8.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
880c181 style: fix import ordering and add missing copyright headers
7b389ae refactor: modularize history.dart and resolve all remaining lint issues
692a3d4 refactor: modularize timer widgets and resolve all lint issues
d58a50a refactor: resolve all lint issues and split timer.dart into modular widgets
063faf5 revert: remove light/dark mode and login page design changes
9171da6 feat: add light/dark mode and refine premium Apple design for login page
cbbb235 style: complete premium Apple-inspired design overhaul with Outfit font
174d926 feat: replace manual version string with VersionWidget (#56)
d5d9ce8 feat: reduce bell volume to 0.5 and ensure music plays at full volume (#55)
70e8e60 fix: start countdown timer concurrent with bells in Intro and Guided (#54)
6fb81b2 ci: ignore freesound.org link in lychee check due to timeouts
c092159 fix: ensure timer duration is correctly restored on startup (#53)
618bcf5 fix(instructions): remove typo from file header
a2fa887 feat: use session type as default title if none provided (#52)
371b947 refactor: extract MarkdownBody into reusable AppMarkdownBody widget
bd89d73 feat: toggle PAUSE/RESUME button on tap (#51)
Binary file added import_order_check.txt
Binary file not shown.
116 changes: 116 additions & 0 deletions lib/constants/colors.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
/// Color constants used throughout the app.
//
// Time-stamp: <Sunday 2026-03-01 20:55:00 Graham Williams>
//
/// Copyright (C) 2024-2026, Togaware Pty Ltd
///
/// Licensed under the GNU General Public License, Version 3 (the "License");
///
/// License: https://opensource.org/license/gpl-3-0
//
// This program is free software: you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free Software
// Foundation, either version 3 of the License, or (at your option) any later
// version.
//
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
// details.
//
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <https://opensource.org/license/gpl-3-0>.
///
/// Authors: Graham Williams

library;

import 'package:flutter/material.dart';

// ----------------------------------------------------------------------
// Theme Colors (typically for ColorScheme)
// ----------------------------------------------------------------------

/// The seed color used to generate the app's color scheme.
const seed = Color(0xFF8B5E3C);

/// The default background color for surfaces.
const surface = Color(0xFFFDFBF9);

/// The primary color used for key components.
const primary = Color(0xFF8B5E3C);

/// The secondary color for accents and highlights.
const secondary = Color(0xFFE6B276);

/// The tertiary color for additional branding elements.
const tertiary = Color(0xFFAD8B73);

/// A surface container color for high-contrast elements.
const surfaceContainerHighest = Color(0xFFF5EADA);

// ----------------------------------------------------------------------
// Functional Colors
// ----------------------------------------------------------------------

/// The background color of the main widget of the app.
const background = Color(0xFFF0D1AD);

/// A lighter color for borders and some background elements.
const border = Color(0xFFF5E0C8);

/// The standard text color (dark brown).
const text = Color(0xFF2D1B0E);

/// A lighter text color for secondary information.
const textSecondary = Color(0xFF4A3427);

/// A color specifically for button primary text or accents.
const accentBrown = Color(0xFF5D4037);

// ----------------------------------------------------------------------
// Specific Widget Colors
// ----------------------------------------------------------------------

/// The background color for the Start button.
const startButtonBackground = Color(0xFFF1FBE9); // lightGreenAccent.shade100

/// The background color for the Intro button.
const introButtonBackground = Color(0xFFE3F2FD); // blue.shade100

/// The background color for the Guided button.
const guidedButtonBackground = Color(0xFFF3E5F5); // purple.shade100

/// The color for selected duration chips.
const accentGreen = Colors.lightGreenAccent;

/// The color for the timer's active fill.
const timerFill = Colors.blueAccent;

/// The color for error or delete actions.
const error = Colors.redAccent;

// ----------------------------------------------------------------------
// Base Colors
// ----------------------------------------------------------------------

/// Pure white.
const white = Colors.white;

/// Pure black.
const black = Colors.black;

/// Transparent.
const transparent = Colors.transparent;

/// Standard grey.
const grey = Colors.grey;

/// A medium-dark grey (Colors.grey[600]).
const grey600 = Color(0xFF757575);

/// A medium grey (Colors.grey[500]).
const grey500 = Color(0xFF9E9E9E);

/// A dark grey (Colors.grey.shade700).
const grey700 = Color(0xFF616161);
39 changes: 0 additions & 39 deletions lib/constants/colours.dart

This file was deleted.

Loading