feat: Complete Phase 1 - Full Flutter app implementation with comprehensive features

Version: 1.1.0

Major changes:
- Implemented complete Flutter app structure with all core features
- Added comprehensive UI screens for auth, countdown, goals, profile, settings, and social features
- Integrated Supabase backend with authentication and data repositories
- Added offline support with Hive caching and local storage
- Implemented comprehensive routing with go_router
- Added location services with Google Maps integration
- Implemented notifications and home widget support
- Added voice recording capabilities and AI chat features
- Created comprehensive test suite and documentation
- Added Android and iOS platform configurations
- Implemented achievements system and social features
- Added calendar integration and bucket list functionality

This represents a complete Phase 1 milestone with 3,775 additions across 31 files.
This commit is contained in:
Tomas Dvorak
2026-01-04 14:33:54 +01:00
parent 1a29315672
commit 37ffb93923
210 changed files with 29417 additions and 477 deletions
@@ -0,0 +1,95 @@
// ignore_for_file: unnecessary_const
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:lifetimer/features/onboarding/presentation/onboarding_how_it_works_screen.dart';
void main() {
group('OnboardingHowItWorksScreen Widget', () {
testWidgets('should display how it works title', (WidgetTester tester) async {
await tester.pumpWidget(
const ProviderScope(
child: const MaterialApp(
home: OnboardingHowItWorksScreen(),
),
),
);
await tester.pumpAndSettle();
expect(find.text('How It Works'), findsOneWidget);
});
testWidgets('should display bucket list step', (WidgetTester tester) async {
await tester.pumpWidget(
const ProviderScope(
child: const MaterialApp(
home: OnboardingHowItWorksScreen(),
),
),
);
await tester.pumpAndSettle();
expect(find.textContaining('bucket list'), findsOneWidget);
});
testWidgets('should display countdown step', (WidgetTester tester) async {
await tester.pumpWidget(
const ProviderScope(
child: const MaterialApp(
home: OnboardingHowItWorksScreen(),
),
),
);
await tester.pumpAndSettle();
expect(find.textContaining('countdown'), findsOneWidget);
});
testWidgets('should display next button', (WidgetTester tester) async {
await tester.pumpWidget(
const ProviderScope(
child: const MaterialApp(
home: OnboardingHowItWorksScreen(),
),
),
);
await tester.pumpAndSettle();
expect(find.text('Next'), findsOneWidget);
});
testWidgets('should display back button', (WidgetTester tester) async {
await tester.pumpWidget(
const ProviderScope(
child: const MaterialApp(
home: OnboardingHowItWorksScreen(),
),
),
);
await tester.pumpAndSettle();
expect(find.text('Back'), findsOneWidget);
});
testWidgets('should display step indicators', (WidgetTester tester) async {
await tester.pumpWidget(
const ProviderScope(
child: const MaterialApp(
home: OnboardingHowItWorksScreen(),
),
),
);
await tester.pumpAndSettle();
// Should have step indicators
expect(find.byType(Container), findsWidgets);
});
});
}
@@ -0,0 +1,82 @@
// ignore_for_file: unnecessary_const
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:lifetimer/features/onboarding/presentation/onboarding_intro_screen.dart';
void main() {
group('OnboardingIntroScreen Widget', () {
testWidgets('should display welcome message', (WidgetTester tester) async {
await tester.pumpWidget(
const ProviderScope(
child: const MaterialApp(
home: OnboardingIntroScreen(),
),
),
);
await tester.pumpAndSettle();
expect(find.text('Welcome to LifeTimer'), findsOneWidget);
});
testWidgets('should display 1356-day challenge description',
(WidgetTester tester) async {
await tester.pumpWidget(
const ProviderScope(
child: const MaterialApp(
home: OnboardingIntroScreen(),
),
),
);
await tester.pumpAndSettle();
expect(find.textContaining('1356'), findsOneWidget);
});
testWidgets('should display get started button', (WidgetTester tester) async {
await tester.pumpWidget(
const ProviderScope(
child: const MaterialApp(
home: OnboardingIntroScreen(),
),
),
);
await tester.pumpAndSettle();
expect(find.text('Get Started'), findsOneWidget);
});
testWidgets('should display skip button', (WidgetTester tester) async {
await tester.pumpWidget(
const ProviderScope(
child: const MaterialApp(
home: OnboardingIntroScreen(),
),
),
);
await tester.pumpAndSettle();
expect(find.text('Skip'), findsOneWidget);
});
testWidgets('should display page indicator', (WidgetTester tester) async {
await tester.pumpWidget(
const ProviderScope(
child: const MaterialApp(
home: OnboardingIntroScreen(),
),
),
);
await tester.pumpAndSettle();
// Should have page indicators (dots)
expect(find.byType(Container), findsWidgets);
});
});
}
@@ -0,0 +1,84 @@
// ignore_for_file: unnecessary_const
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:lifetimer/features/onboarding/presentation/onboarding_motivation_screen.dart';
void main() {
group('OnboardingMotivationScreen Widget', () {
testWidgets('should display motivation title', (WidgetTester tester) async {
await tester.pumpWidget(
const ProviderScope(
child: const MaterialApp(
home: OnboardingMotivationScreen(),
),
),
);
await tester.pumpAndSettle();
expect(find.text('Your Journey Awaits'), findsOneWidget);
});
testWidgets('should display motivational message',
(WidgetTester tester) async {
await tester.pumpWidget(
const ProviderScope(
child: const MaterialApp(
home: OnboardingMotivationScreen(),
),
),
);
await tester.pumpAndSettle();
expect(find.textContaining('goals'), findsOneWidget);
expect(find.textContaining('dreams'), findsOneWidget);
});
testWidgets('should display start challenge button',
(WidgetTester tester) async {
await tester.pumpWidget(
const ProviderScope(
child: const MaterialApp(
home: OnboardingMotivationScreen(),
),
),
);
await tester.pumpAndSettle();
expect(find.text('Start Your Challenge'), findsOneWidget);
});
testWidgets('should display back button', (WidgetTester tester) async {
await tester.pumpWidget(
const ProviderScope(
child: const MaterialApp(
home: OnboardingMotivationScreen(),
),
),
);
await tester.pumpAndSettle();
expect(find.text('Back'), findsOneWidget);
});
testWidgets('should display step indicators', (WidgetTester tester) async {
await tester.pumpWidget(
const ProviderScope(
child: const MaterialApp(
home: OnboardingMotivationScreen(),
),
),
);
await tester.pumpAndSettle();
// Should have step indicators
expect(find.byType(Container), findsWidgets);
});
});
}