linux app config
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
# This file should be version controlled and should not be manually edited.
|
# This file should be version controlled and should not be manually edited.
|
||||||
|
|
||||||
version:
|
version:
|
||||||
revision: "8defaa71a77c16e8547abdbfad2053ce3a6e2d5b"
|
revision: "6fba2447e95c451518584c35e25f5433f14d888c"
|
||||||
channel: "stable"
|
channel: "stable"
|
||||||
|
|
||||||
project_type: app
|
project_type: app
|
||||||
@@ -13,26 +13,11 @@ project_type: app
|
|||||||
migration:
|
migration:
|
||||||
platforms:
|
platforms:
|
||||||
- platform: root
|
- platform: root
|
||||||
create_revision: 8defaa71a77c16e8547abdbfad2053ce3a6e2d5b
|
create_revision: 6fba2447e95c451518584c35e25f5433f14d888c
|
||||||
base_revision: 8defaa71a77c16e8547abdbfad2053ce3a6e2d5b
|
base_revision: 6fba2447e95c451518584c35e25f5433f14d888c
|
||||||
- platform: android
|
|
||||||
create_revision: 8defaa71a77c16e8547abdbfad2053ce3a6e2d5b
|
|
||||||
base_revision: 8defaa71a77c16e8547abdbfad2053ce3a6e2d5b
|
|
||||||
- platform: ios
|
|
||||||
create_revision: 8defaa71a77c16e8547abdbfad2053ce3a6e2d5b
|
|
||||||
base_revision: 8defaa71a77c16e8547abdbfad2053ce3a6e2d5b
|
|
||||||
- platform: linux
|
- platform: linux
|
||||||
create_revision: 8defaa71a77c16e8547abdbfad2053ce3a6e2d5b
|
create_revision: 6fba2447e95c451518584c35e25f5433f14d888c
|
||||||
base_revision: 8defaa71a77c16e8547abdbfad2053ce3a6e2d5b
|
base_revision: 6fba2447e95c451518584c35e25f5433f14d888c
|
||||||
- platform: macos
|
|
||||||
create_revision: 8defaa71a77c16e8547abdbfad2053ce3a6e2d5b
|
|
||||||
base_revision: 8defaa71a77c16e8547abdbfad2053ce3a6e2d5b
|
|
||||||
- platform: web
|
|
||||||
create_revision: 8defaa71a77c16e8547abdbfad2053ce3a6e2d5b
|
|
||||||
base_revision: 8defaa71a77c16e8547abdbfad2053ce3a6e2d5b
|
|
||||||
- platform: windows
|
|
||||||
create_revision: 8defaa71a77c16e8547abdbfad2053ce3a6e2d5b
|
|
||||||
base_revision: 8defaa71a77c16e8547abdbfad2053ce3a6e2d5b
|
|
||||||
|
|
||||||
# User provided section
|
# User provided section
|
||||||
|
|
||||||
|
|||||||
13
mih_ui/firepit-log.txt
Normal file
13
mih_ui/firepit-log.txt
Normal file
File diff suppressed because one or more lines are too long
@@ -29,10 +29,11 @@ class DefaultFirebaseOptions {
|
|||||||
case TargetPlatform.windows:
|
case TargetPlatform.windows:
|
||||||
return windows;
|
return windows;
|
||||||
case TargetPlatform.linux:
|
case TargetPlatform.linux:
|
||||||
throw UnsupportedError(
|
return web;
|
||||||
'DefaultFirebaseOptions have not been configured for linux - '
|
// throw UnsupportedError(
|
||||||
'you can reconfigure this by running the FlutterFire CLI again.',
|
// 'DefaultFirebaseOptions have not been configured for linux - '
|
||||||
);
|
// 'you can reconfigure this by running the FlutterFire CLI again.',
|
||||||
|
// );
|
||||||
default:
|
default:
|
||||||
throw UnsupportedError(
|
throw UnsupportedError(
|
||||||
'DefaultFirebaseOptions are not supported for this platform.',
|
'DefaultFirebaseOptions are not supported for this platform.',
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:go_router/go_router.dart';
|
import 'package:go_router/go_router.dart';
|
||||||
@@ -92,7 +94,7 @@ class _MzansiInnovationHubState extends State<MzansiInnovationHub> {
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
if (!kIsWeb) {
|
if (!kIsWeb && (Platform.isAndroid || Platform.isIOS)) {
|
||||||
_initializeQuickActions();
|
_initializeQuickActions();
|
||||||
}
|
}
|
||||||
theme = MihTheme();
|
theme = MihTheme();
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import 'package:firebase_core/firebase_core.dart';
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_native_splash/flutter_native_splash.dart';
|
import 'package:flutter_native_splash/flutter_native_splash.dart';
|
||||||
@@ -6,7 +7,6 @@ import 'package:flutter_web_plugins/url_strategy.dart'
|
|||||||
if (dart.library.html) 'package:flutter_web_plugins/url_strategy.dart';
|
if (dart.library.html) 'package:flutter_web_plugins/url_strategy.dart';
|
||||||
import 'package:go_router/go_router.dart';
|
import 'package:go_router/go_router.dart';
|
||||||
import 'package:google_mobile_ads/google_mobile_ads.dart';
|
import 'package:google_mobile_ads/google_mobile_ads.dart';
|
||||||
import 'package:mzansi_innovation_hub/firebase_options.dart';
|
|
||||||
import 'package:mzansi_innovation_hub/main.dart';
|
import 'package:mzansi_innovation_hub/main.dart';
|
||||||
import 'package:mzansi_innovation_hub/mih_config/mih_go_router.dart';
|
import 'package:mzansi_innovation_hub/mih_config/mih_go_router.dart';
|
||||||
import 'package:pwa_install/pwa_install.dart';
|
import 'package:pwa_install/pwa_install.dart';
|
||||||
@@ -21,10 +21,13 @@ void main() async {
|
|||||||
apiDomain: AppEnviroment.baseApiUrl,
|
apiDomain: AppEnviroment.baseApiUrl,
|
||||||
apiBasePath: "/auth",
|
apiBasePath: "/auth",
|
||||||
);
|
);
|
||||||
await Firebase.initializeApp(
|
// await Firebase.initializeApp(
|
||||||
options: DefaultFirebaseOptions.currentPlatform,
|
// // options: DefaultFirebaseOptions.currentPlatform,
|
||||||
);
|
// options: (Platform.isLinux)
|
||||||
if (!kIsWeb) {
|
// ? DefaultFirebaseOptions.web // Forces Linux to use the Web config
|
||||||
|
// : DefaultFirebaseOptions.currentPlatform,
|
||||||
|
// );
|
||||||
|
if (!kIsWeb && (Platform.isAndroid || Platform.isIOS)) {
|
||||||
const List<String> testDeviceIds = ['733d4c68-9b54-453a-9622-2df407310f40'];
|
const List<String> testDeviceIds = ['733d4c68-9b54-453a-9622-2df407310f40'];
|
||||||
MobileAds.instance.updateRequestConfiguration(
|
MobileAds.instance.updateRequestConfiguration(
|
||||||
RequestConfiguration(
|
RequestConfiguration(
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import 'package:firebase_core/firebase_core.dart';
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_native_splash/flutter_native_splash.dart';
|
import 'package:flutter_native_splash/flutter_native_splash.dart';
|
||||||
@@ -6,7 +7,6 @@ import 'package:flutter_web_plugins/url_strategy.dart'
|
|||||||
if (dart.library.html) 'package:flutter_web_plugins/url_strategy.dart';
|
if (dart.library.html) 'package:flutter_web_plugins/url_strategy.dart';
|
||||||
import 'package:go_router/go_router.dart';
|
import 'package:go_router/go_router.dart';
|
||||||
import 'package:google_mobile_ads/google_mobile_ads.dart';
|
import 'package:google_mobile_ads/google_mobile_ads.dart';
|
||||||
import 'package:mzansi_innovation_hub/firebase_options.dart';
|
|
||||||
import 'package:mzansi_innovation_hub/main.dart';
|
import 'package:mzansi_innovation_hub/main.dart';
|
||||||
import 'package:mzansi_innovation_hub/mih_config/mih_go_router.dart';
|
import 'package:mzansi_innovation_hub/mih_config/mih_go_router.dart';
|
||||||
import 'package:pwa_install/pwa_install.dart';
|
import 'package:pwa_install/pwa_install.dart';
|
||||||
@@ -21,10 +21,10 @@ void main() async {
|
|||||||
apiDomain: AppEnviroment.baseApiUrl,
|
apiDomain: AppEnviroment.baseApiUrl,
|
||||||
apiBasePath: "/auth",
|
apiBasePath: "/auth",
|
||||||
);
|
);
|
||||||
await Firebase.initializeApp(
|
// await Firebase.initializeApp(
|
||||||
options: DefaultFirebaseOptions.currentPlatform,
|
// options: DefaultFirebaseOptions.currentPlatform,
|
||||||
);
|
// );
|
||||||
if (!kIsWeb) {
|
if (!kIsWeb && (Platform.isAndroid || Platform.isIOS)) {
|
||||||
MobileAds.instance.initialize();
|
MobileAds.instance.initialize();
|
||||||
} else {
|
} else {
|
||||||
usePathUrlStrategy();
|
usePathUrlStrategy();
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
@@ -128,7 +130,10 @@ class _MihSearchBarState extends State<MihSearchBar> {
|
|||||||
controller: widget.controller, // Assign the controller
|
controller: widget.controller, // Assign the controller
|
||||||
focusNode: widget.searchFocusNode,
|
focusNode: widget.searchFocusNode,
|
||||||
autocorrect: true,
|
autocorrect: true,
|
||||||
spellCheckConfiguration: kIsWeb ? null : SpellCheckConfiguration(),
|
spellCheckConfiguration:
|
||||||
|
!kIsWeb && (Platform.isAndroid || Platform.isIOS)
|
||||||
|
? SpellCheckConfiguration()
|
||||||
|
: null,
|
||||||
onSubmitted: (value) {
|
onSubmitted: (value) {
|
||||||
widget.onPrefixIconTap
|
widget.onPrefixIconTap
|
||||||
?.call(); // Call the prefix icon tap handler
|
?.call(); // Call the prefix icon tap handler
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
@@ -157,11 +159,15 @@ class _MihTextFormFieldState extends State<MihTextFormField> {
|
|||||||
cursorColor: widget.inputColor,
|
cursorColor: widget.inputColor,
|
||||||
autofillHints: widget.autofillHints,
|
autofillHints: widget.autofillHints,
|
||||||
autocorrect: true,
|
autocorrect: true,
|
||||||
spellCheckConfiguration: (kIsWeb ||
|
// spellCheckConfiguration: (kIsWeb ||
|
||||||
widget.passwordMode == true ||
|
// widget.passwordMode == true ||
|
||||||
widget.numberMode == true)
|
// widget.numberMode == true)
|
||||||
? null
|
// ? null
|
||||||
: SpellCheckConfiguration(),
|
// : SpellCheckConfiguration(),
|
||||||
|
spellCheckConfiguration: !kIsWeb &&
|
||||||
|
(Platform.isAndroid || Platform.isIOS)
|
||||||
|
? SpellCheckConfiguration()
|
||||||
|
: null,
|
||||||
textAlign:
|
textAlign:
|
||||||
widget.textIputAlignment ?? TextAlign.start,
|
widget.textIputAlignment ?? TextAlign.start,
|
||||||
textAlignVertical: widget.multiLineInput == true
|
textAlignVertical: widget.multiLineInput == true
|
||||||
|
|||||||
@@ -586,13 +586,13 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "6.1.0"
|
version: "6.1.0"
|
||||||
firebase_core:
|
firebase_core:
|
||||||
dependency: "direct main"
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: firebase_core
|
name: firebase_core
|
||||||
sha256: "1f2dfd9f535d81f8b06d7a50ecda6eac1e6922191ed42e09ca2c84bd2288927c"
|
sha256: "923085c881663ef685269b013e241b428e1fb03cdd0ebde265d9b40ff18abf80"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "4.2.1"
|
version: "4.4.0"
|
||||||
firebase_core_platform_interface:
|
firebase_core_platform_interface:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -605,10 +605,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: firebase_core_web
|
name: firebase_core_web
|
||||||
sha256: ff18fabb0ad0ed3595d2f2c85007ecc794aadecdff5b3bb1460b7ee47cded398
|
sha256: "83e7356c704131ca4d8d8dd57e360d8acecbca38b1a3705c7ae46cc34c708084"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.3.0"
|
version: "3.4.0"
|
||||||
fixnum:
|
fixnum:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ dependencies:
|
|||||||
|
|
||||||
cupertino_icons: ^1.0.8
|
cupertino_icons: ^1.0.8
|
||||||
font_awesome_flutter: ^10.7.0
|
font_awesome_flutter: ^10.7.0
|
||||||
firebase_core: ^4.2.1
|
# firebase_core: ^4.4.0
|
||||||
|
# firebase_core_desktop: ^1.0.2
|
||||||
syncfusion_flutter_core: ^29.2.10
|
syncfusion_flutter_core: ^29.2.10
|
||||||
syncfusion_flutter_pdfviewer: ^29.2.10
|
syncfusion_flutter_pdfviewer: ^29.2.10
|
||||||
universal_html: ^2.2.4
|
universal_html: ^2.2.4
|
||||||
|
|||||||
Reference in New Issue
Block a user