Merge remote-tracking branch 'origin/env-support' into env-support

This commit is contained in:
Darshan 2025-03-18 13:10:27 +05:30
commit 43de5c17f1
5 changed files with 0 additions and 16 deletions

View File

@ -1,4 +1,3 @@
APPWRITE_VERSION=
APPWRITE_PROJECT_ID=
APPWRITE_PROJECT_NAME=
APPWRITE_PUBLIC_ENDPOINT=

2
.gitignore vendored
View File

@ -83,5 +83,3 @@ fastlane/sign&cert
*.save
._*
*.bak
*.sh

View File

@ -3,12 +3,10 @@ class ProjectInfo {
final String endpoint;
final String projectId;
final String projectName;
final String version;
ProjectInfo({
required this.endpoint,
required this.projectId,
required this.projectName,
required this.version,
});
}

View File

@ -8,7 +8,6 @@ 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 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');
@ -35,7 +34,6 @@ class AppwriteRepository {
endpoint: appwritePublicEndpoint,
projectId: appwriteProjectId,
projectName: appwriteProjectName,
version: appwriteVersion,
);
}

View File

@ -242,15 +242,6 @@ class ProjectSection extends StatelessWidget {
ProjectRow(title: "Project ID", value: projectInfo.projectId),
],
),
const SizedBox(height: 16),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
ProjectRow(
title: "Project Name", value: projectInfo.projectName),
ProjectRow(title: "Version", value: projectInfo.version),
],
),
],
),
),