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