Merge remote-tracking branch 'origin/env-support' into env-support
This commit is contained in:
commit
43de5c17f1
@ -1,4 +1,3 @@
|
||||
APPWRITE_VERSION=
|
||||
APPWRITE_PROJECT_ID=
|
||||
APPWRITE_PROJECT_NAME=
|
||||
APPWRITE_PUBLIC_ENDPOINT=
|
||||
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@ -83,5 +83,3 @@ fastlane/sign&cert
|
||||
*.save
|
||||
._*
|
||||
*.bak
|
||||
|
||||
*.sh
|
||||
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -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),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user