Skip to content

Commit 8b0f155

Browse files
committed
minor fixes
1 parent 4eeb956 commit 8b0f155

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

templates/flutter/lib/client.dart.twig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,12 @@ class Client {
8282
PackageInfo packageInfo = await PackageInfo.fromPlatform();
8383
addHeader('Origin', 'appwrite-$type://${packageInfo.packageName}');
8484
} else {
85-
// if web set httpClientAdapter as BrowserHttpClientAdapter with withCredentials true to make cookies work
85+
// if web set withCredentials true to make cookies work
8686
this.http.options.extra['withCredentials'] = true;
8787
}
8888

8989
this.http.options.baseUrl = this.endPoint;
9090
this.http.options.validateStatus = (status) => status! < 400;
91-
initialized = true;
9291
}
9392

9493
Future<Response> call(HttpMethod method, {String path = '', Map<String, String> headers = const {}, Map<String, dynamic> params = const {}, ResponseType? responseType}) async {

templates/flutter/lib/package.dart.twig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import 'dart:io';
44
import 'dart:convert';
55
import 'package:universal_html/html.dart' as html;
66
import 'package:dio/dio.dart';
7-
import 'package:meta/meta.dart';
87
import 'package:flutter/foundation.dart';
98
import 'package:flutter_web_auth/flutter_web_auth.dart';
109
import 'package:dio/adapter.dart';

0 commit comments

Comments
 (0)