From 6d09b2358419c35772d9f3a67f0afc2254214e6f Mon Sep 17 00:00:00 2001 From: David <86196556+DH-555@users.noreply.github.com> Date: Fri, 19 Jan 2024 16:24:23 +0100 Subject: [PATCH] Added dart:io to make templates work by default and delete error while using Platform.environment --- src/routes/docs/products/functions/examples/+page.markdoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/docs/products/functions/examples/+page.markdoc b/src/routes/docs/products/functions/examples/+page.markdoc index 508a302927..03684f3844 100644 --- a/src/routes/docs/products/functions/examples/+page.markdoc +++ b/src/routes/docs/products/functions/examples/+page.markdoc @@ -397,6 +397,7 @@ return function ($context) { ```dart import 'dart:async'; import 'package:dart_appwrite/dart_appwrite.dart'; +import: 'dart:io'; Future main(final context) async { final vote = { @@ -723,6 +724,7 @@ end ```dart import 'dart:async'; import 'package:dart_appwrite/dart_appwrite.dart'; +import: 'dart:io'; Future main(final context) async { final html = '''