happy ending

This commit is contained in:
baroni31
2026-05-20 22:08:30 +01:00
parent 3b93cffd38
commit 20f3c821ca
24 changed files with 60 additions and 56 deletions

View File

@@ -3,17 +3,16 @@ import 'package:supabase_flutter/supabase_flutter.dart';
class SupabaseConfig {
const SupabaseConfig._();
static const _url = String.fromEnvironment('SUPABASE_URL');
static const _anonKey = String.fromEnvironment('SUPABASE_ANON_KEY');
static const _url = String.fromEnvironment(
'SUPABASE_URL',
defaultValue: 'https://vnpqjabecckhtceggtgx.supabase.co',
);
static const _anonKey = String.fromEnvironment(
'SUPABASE_ANON_KEY',
defaultValue: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InZucHFqYWJlY2NraHRjZWdndGd4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzkzMDM5MTAsImV4cCI6MjA5NDg3OTkxMH0.pcHmcLNQrc3cvZPYZ8eu-A7Me_HZt9I2Brwo-k6w35A',
);
static Future<void> initialize() async {
if (_url.isEmpty || _anonKey.isEmpty) {
throw StateError(
'Missing Supabase env values. Provide SUPABASE_URL and SUPABASE_ANON_KEY '
'using --dart-define.',
);
}
await Supabase.initialize(
url: _url,
anonKey: _anonKey,

View File

@@ -10,7 +10,7 @@ import '../../features/auth/presentation/screens/login_screen.dart';
import '../../features/auth/presentation/screens/signup_screen.dart';
import '../../features/admin/presentation/screens/admin_screen.dart';
import '../../features/discover/presentation/pages/discover_page.dart';
import '../../features/feed/presentation/screens/feed_screen.dart';
import '../../features/home/presentation/pages/home_page.dart';
import '../../features/feed/presentation/screens/upload_post_screen.dart';
import '../../features/music/presentation/pages/music_page.dart';
import '../../features/profile/presentation/pages/profile_page.dart';
@@ -24,7 +24,7 @@ final appRouterProvider = Provider<GoRouter>((ref) {
final authStateStream = client.auth.onAuthStateChange;
return GoRouter(
initialLocation: AppRoutes.splash,
initialLocation: AppRoutes.home,
refreshListenable: GoRouterRefreshStream(authStateStream),
routes: [
GoRoute(
@@ -45,7 +45,7 @@ final appRouterProvider = Provider<GoRouter>((ref) {
),
GoRoute(
path: AppRoutes.home,
builder: (context, state) => const FeedScreen(),
builder: (context, state) => const HomePage(),
),
GoRoute(
path: AppRoutes.uploadPost,

View File

@@ -1,7 +1,6 @@
import 'package:flutter/material.dart';
import 'app_colors.dart';
import 'app_typography.dart';
import 'app_motion.dart';
class AppTheme {
const AppTheme._();
@@ -96,7 +95,7 @@ class AppTheme {
// Navigation Bar - Custom Riotz Feel
navigationBarTheme: NavigationBarThemeData(
backgroundColor: AppColors.black,
indicatorColor: AppColors.neonRed.withOpacity(0.1),
indicatorColor: AppColors.neonRed.withValues(alpha: 0.1),
labelTextStyle: WidgetStateProperty.resolveWith((states) {
if (states.contains(WidgetState.selected)) {
return textTheme.bodySmall?.copyWith(color: AppColors.neonRed, fontWeight: FontWeight.bold);

View File

@@ -35,7 +35,7 @@ class RiotzScaffold extends StatelessWidget {
end: Alignment.bottomCenter,
colors: [
AppColors.black,
AppColors.deepRed.withOpacity(0.05),
AppColors.deepRed.withValues(alpha: 0.05),
AppColors.black,
],
),