first commit
Build / Build for Android (push) Has been cancelled
Build / Build for iOS (push) Has been cancelled

This commit is contained in:
Zakaria
2026-05-18 14:15:38 -04:00
commit 1563409cb1
382 changed files with 45347 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
import 'package:flutter/material.dart';
import 'package:get_it/get_it.dart';
import '../services/finamp_user_helper.dart';
import 'user_selector.dart';
import 'music_screen.dart';
import 'view_selector.dart';
class SplashScreen extends StatelessWidget {
const SplashScreen({Key? key}) : super(key: key);
static const routeName = "/";
@override
Widget build(BuildContext context) {
final finampUserHelper = GetIt.instance<FinampUserHelper>();
if (finampUserHelper.currentUser == null) {
return const UserSelector();
} else if (finampUserHelper.currentUser!.currentView == null) {
return const ViewSelector();
} else {
return const MusicScreen();
}
}
}