Skip to content

fix: update instructions (step 2) for configuring Flutter platform #2063

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
'\ngit clone https://github.com/appwrite/starter-for-flutter\ncd starter-for-flutter\n';

const updateConfigCode = isCloud
? `static const String APPWRITE_PROJECT_ID = "${projectId}"`
: `static const String APPWRITE_PROJECT_ID = "${projectId}"
static const String APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject(page.params.region, page.params.project).client.config.endpoint}"
? `APPWRITE_PROJECT_ID="${projectId}"`
: `APPWRITE_PROJECT_ID="${projectId}"
APPWRITE_PUBLIC_ENDPOINT="${sdk.forProject(page.params.region, page.params.project).client.config.endpoint}"
`;

export let platform: PlatformType = PlatformType.Flutterandroid;
Expand Down Expand Up @@ -276,8 +276,9 @@ static const String APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject(page.params.reg
</div>

<Typography.Text variant="m-500"
>2. Open the file <InlineCode size="s" code="lib/constants/appwrite.dart" />
and update the configuration settings.</Typography.Text>
>2. Copy the file <InlineCode size="s" code="/.env.example" />
rename it to <InlineCode size="s" code=".env" />, and update the
configuration settings.</Typography.Text>

<!-- Temporary fix: Remove this div once Code splitting issue with stack spacing is resolved -->
<div class="pink2-code-margin-fix">
Expand Down