update: for sites run.
This commit is contained in:
parent
e32da995a2
commit
761fcd7cd7
4
.gitignore
vendored
4
.gitignore
vendored
@ -82,4 +82,6 @@ fastlane/sign&cert
|
||||
*~
|
||||
*.save
|
||||
._*
|
||||
*.bak
|
||||
*.bak
|
||||
|
||||
*.sh
|
||||
@ -1,6 +1,5 @@
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:appwrite/appwrite.dart';
|
||||
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
||||
import 'package:appwrite_flutter_starter_kit/data/models/log.dart';
|
||||
import 'package:appwrite_flutter_starter_kit/data/models/project_info.dart';
|
||||
|
||||
@ -9,10 +8,10 @@ import 'package:appwrite_flutter_starter_kit/data/models/project_info.dart';
|
||||
/// It provides a helper method to ping the server.
|
||||
class AppwriteRepository {
|
||||
static const String pingPath = "/ping";
|
||||
static final String appwriteVersion = dotenv.env['APPWRITE_VERSION']!;
|
||||
static final String appwriteProjectId = dotenv.env['APPWRITE_PROJECT_ID']!;
|
||||
static final String appwriteProjectName = dotenv.env['APPWRITE_PROJECT_NAME']!;
|
||||
static final String appwritePublicEndpoint = dotenv.env['APPWRITE_PUBLIC_ENDPOINT']!;
|
||||
static const String appwriteVersion = String.fromEnvironment('APPWRITE_VERSION');
|
||||
static const String appwriteProjectId = String.fromEnvironment('APPWRITE_PROJECT_ID');
|
||||
static const String appwriteProjectName = String.fromEnvironment('APPWRITE_PROJECT_NAME');
|
||||
static const String appwritePublicEndpoint = String.fromEnvironment('APPWRITE_PUBLIC_ENDPOINT');
|
||||
|
||||
final Client _client = Client()
|
||||
.setProject(appwriteProjectId)
|
||||
|
||||
@ -3,7 +3,6 @@ import 'dart:io';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
||||
import 'package:window_manager/window_manager.dart';
|
||||
|
||||
/// A utility class for initializing the Flutter application.
|
||||
@ -18,7 +17,6 @@ class AppInitializer {
|
||||
/// and configures device orientation settings.
|
||||
static initialize() async {
|
||||
_ensureInitialized();
|
||||
await _loadDotEnvVariables();
|
||||
await _setupWindowDimensions();
|
||||
await _setupDeviceOrientation();
|
||||
}
|
||||
@ -28,11 +26,6 @@ class AppInitializer {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
}
|
||||
|
||||
/// Ensures that Flutter bindings are initialized.
|
||||
static _loadDotEnvVariables() async {
|
||||
await dotenv.load(fileName: ".env");
|
||||
}
|
||||
|
||||
/// Configures the window dimensions for desktop applications.
|
||||
///
|
||||
/// Ensures the window manager is initialized and sets a minimum window size.
|
||||
|
||||
@ -158,14 +158,6 @@ packages:
|
||||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.0"
|
||||
flutter_dotenv:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: flutter_dotenv
|
||||
sha256: b7c7be5cd9f6ef7a78429cabd2774d3c4af50e79cb2b7593e3d5d763ef95c61b
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "5.2.1"
|
||||
flutter_launcher_icons:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
|
||||
@ -14,7 +14,6 @@ dependencies:
|
||||
intl: ^0.20.2
|
||||
appwrite: ^14.0.0
|
||||
url_launcher: ^6.3.1
|
||||
flutter_dotenv: ^5.2.1
|
||||
window_manager: ^0.4.3
|
||||
cupertino_icons: ^1.0.8
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user