-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upd readme * fixed screens * upd screens * upd * upd * upd * upd * upd * upd * upd version * added images for nashstore * issue-103 updated links handling * issue-103 * issue-105 * d * d * d * d * d * d * в * d * d * d * d * d * d * d * d * d * d * s * d * d * d * d * d * d * d * d * d * d * d * d * r * d * issue-105 * issue-109 * issue-110 ci * d
- Loading branch information
1 parent
87200e8
commit b382254
Showing
201 changed files
with
2,979 additions
and
1,336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,3 +45,5 @@ app.*.map.json | |
/android/app/debug | ||
/android/app/profile | ||
/android/app/release | ||
|
||
README.local.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
import 'package:flutter/foundation.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_bloc/flutter_bloc.dart'; | ||
import 'package:shared_preferences/shared_preferences.dart'; | ||
import 'package:the_elder_scrolls_alchemy_client/layers/data/resources/constant.dart'; | ||
import 'package:the_elder_scrolls_alchemy_client/layers/presentation/widgets/app_widget.dart'; | ||
import 'package:the_elder_scrolls_alchemy_client/layers/state_management/app_state.dart'; | ||
|
||
class TheElderScrollsAlchemyClientApp extends StatelessWidget { | ||
const TheElderScrollsAlchemyClientApp({Key? key}) : super(key: key); | ||
|
||
static Future<String> getSavedGameName() async { | ||
String? gameNameFromPreferences = await getGameNameFromPreferences(); | ||
if (gameNameFromPreferences == null) { | ||
return Constant.fallbackGameName; | ||
} | ||
return gameNameFromPreferences; | ||
} | ||
|
||
static String getLocaleLanguageCode(BuildContext context) { | ||
return Localizations.localeOf(context).languageCode; | ||
} | ||
|
||
static Future<String> getSavedLanguageCode() async { | ||
String? languageCodeFromPreferences = await getLanguageCodeFromPreferences(); | ||
if (languageCodeFromPreferences == null) { | ||
return Constant.fallbackLanguage; | ||
} | ||
return languageCodeFromPreferences; | ||
} | ||
|
||
static Future<String?> getLanguageCodeFromPreferences() async { | ||
final prefs = await SharedPreferences.getInstance(); | ||
final String? languageCode = prefs.getString('languageCode'); | ||
|
||
return languageCode; | ||
} | ||
|
||
static Future<String?> getGameNameFromPreferences() async { | ||
final prefs = await SharedPreferences.getInstance(); | ||
final String? gameName = prefs.getString('gameName'); | ||
|
||
return gameName; | ||
} | ||
|
||
AppState setStateFromUrl() { | ||
String savedGameName = Constant.fallbackGameName; | ||
String savedLanguage = Constant.fallbackLanguage; | ||
TheElderScrollsAlchemyClientApp.getSavedGameName().then((value) => savedGameName = value); | ||
TheElderScrollsAlchemyClientApp.getSavedLanguageCode().then((value) => savedLanguage = value); | ||
|
||
String chosenTab = Constant.tabHome; | ||
String objectName = ''; | ||
|
||
if (kIsWeb) { | ||
final segments = Uri.base.pathSegments; | ||
|
||
if (segments.length == 2 || segments.length == 3) { | ||
savedGameName = segments[0]; | ||
|
||
chosenTab = segments[1]; | ||
|
||
if (segments.length > 2) { | ||
objectName = segments[2]; | ||
} | ||
} | ||
} | ||
|
||
return AppState( | ||
gameName: savedGameName, | ||
language: savedLanguage, | ||
chosenTab: chosenTab, | ||
chosenEffectName: chosenTab == Constant.tabEffects ? objectName : '', | ||
chosenIngredientName: chosenTab == Constant.tabIngredients ? objectName : '', | ||
urlPath: Uri.base.path, | ||
); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final state = setStateFromUrl(); | ||
|
||
final blocProvider = BlocProvider( | ||
create: (_) => state, | ||
child: const AppWidget(), | ||
); | ||
|
||
return blocProvider; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import 'package:flutter_simple_dependency_injection/injector.dart'; | ||
import 'package:the_elder_scrolls_alchemy_client/app.dart'; | ||
import 'package:the_elder_scrolls_alchemy_client/layers/business_logic/services/settings_manager.dart'; | ||
import 'package:the_elder_scrolls_alchemy_client/layers/state_management/app_state.dart'; | ||
import 'package:the_elder_scrolls_alchemy_client/layers/state_management/custom_navigator.dart'; | ||
import 'package:the_elder_scrolls_alchemy_client/router.dart'; | ||
|
||
class DependencyInjectionContainer { | ||
Injector initialise(Injector injector) { | ||
injector.map<SettingsManager>((injector) => SettingsManager(), isSingleton: true); | ||
|
||
injector.map<AppState>((injector) => AppState(), isSingleton: true); | ||
|
||
injector.map<TheElderScrollsAlchemyClientApp>( | ||
(injector) => TheElderScrollsAlchemyClientApp(), | ||
isSingleton: true, | ||
); | ||
|
||
return injector; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import 'package:url_launcher/url_launcher.dart'; | ||
|
||
class LinkLauncher { | ||
static Future<void> launch({required String url}) async { | ||
if (!await launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication)) { | ||
throw Exception('Could not launch $url'); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.