fix: replace download flow with manual transfer instructions; rename app package
The Gemma model requires Kaggle login/licence so direct HTTP download is not possible. Replaces the download screen with adb transfer instructions, a Scan button that checks the file on disk, and a Continue without AI bypass. Also renames the Android package from com.example.dailyou to net.stefwill.dailyou (build.gradle.kts, MainActivity.kt path + declaration) and adds *.bin to .gitignore to keep model files out of the repo.
This commit is contained in:
+11
-8
@@ -9,6 +9,7 @@ class App extends ConsumerWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final skipped = ref.watch(modelSkippedProvider);
|
||||
final modelPresentAsync = ref.watch(modelPresentProvider);
|
||||
|
||||
return MaterialApp(
|
||||
@@ -17,14 +18,16 @@ class App extends ConsumerWidget {
|
||||
theme: _lightTheme(),
|
||||
darkTheme: _darkTheme(),
|
||||
themeMode: ThemeMode.system,
|
||||
home: modelPresentAsync.when(
|
||||
data: (present) =>
|
||||
present ? const AppShell() : const ModelDownloadScreen(),
|
||||
loading: () => const Scaffold(
|
||||
body: Center(child: CircularProgressIndicator()),
|
||||
),
|
||||
error: (_, __) => const ModelDownloadScreen(),
|
||||
),
|
||||
home: skipped
|
||||
? const AppShell()
|
||||
: modelPresentAsync.when(
|
||||
data: (present) =>
|
||||
present ? const AppShell() : const ModelDownloadScreen(),
|
||||
loading: () => const Scaffold(
|
||||
body: Center(child: CircularProgressIndicator()),
|
||||
),
|
||||
error: (_, __) => const ModelDownloadScreen(),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user