Skip to content

Commit 03380aa

Browse files
committed
chore: Add kIsWeb flag to HtHttpClient
- Pass kIsWeb to HtHttpClient
1 parent a436064 commit 03380aa

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

lib/main.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'package:flutter/foundation.dart' show kIsWeb;
12
import 'package:flutter/material.dart';
23
import 'package:flutter_bloc/flutter_bloc.dart';
34
import 'package:ht_auth_api/ht_auth_api.dart';
@@ -31,6 +32,7 @@ void main() async {
3132
final httpClient = HtHttpClient(
3233
baseUrl: 'http://localhost:8080',
3334
tokenProvider: tokenProvider,
35+
isWeb: kIsWeb,
3436
);
3537

3638
// 5. Instantiate Auth Client and Repository

pubspec.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ packages:
170170
source: hosted
171171
version: "5.8.0+1"
172172
dio_web_adapter:
173-
dependency: transitive
173+
dependency: "direct main"
174174
description:
175175
name: dio_web_adapter
176176
sha256: "7586e476d70caecaf1686d21eee7247ea43ef5c345eab9e0cc3583ff13378d78"
@@ -314,7 +314,7 @@ packages:
314314
description:
315315
path: "."
316316
ref: HEAD
317-
resolved-ref: c0a8f8783ec27a6494c99d7bd47cb8600b0a5bec
317+
resolved-ref: "9448865dbb1ef516a0406b8ce21645b82a25fec4"
318318
url: "https://github.com/headlines-toolkit/ht-auth-api.git"
319319
source: git
320320
version: "0.0.0"
@@ -323,7 +323,7 @@ packages:
323323
description:
324324
path: "."
325325
ref: HEAD
326-
resolved-ref: "1c95c775085ed723923f9d9a53fe1c3becdeced4"
326+
resolved-ref: "2c8a0a53ada3e31cc2be1061fee45d4e07612beb"
327327
url: "https://github.com/headlines-toolkit/ht-auth-client.git"
328328
source: git
329329
version: "0.0.0"
@@ -332,7 +332,7 @@ packages:
332332
description:
333333
path: "."
334334
ref: HEAD
335-
resolved-ref: cc20fa6d3b396ade6c70c1e972fa75e9cf23e37c
335+
resolved-ref: ba5cb886c68b8f82b9a33903be04c44ef16d8bde
336336
url: "https://github.com/headlines-toolkit/ht-auth-repository.git"
337337
source: git
338338
version: "0.0.0"
@@ -368,7 +368,7 @@ packages:
368368
description:
369369
path: "."
370370
ref: HEAD
371-
resolved-ref: "6e9f6301bc643798b9a1023f64bd262aa2e069be"
371+
resolved-ref: fd3be932772473d8aed35ad5c12df7c2a63756d7
372372
url: "https://github.com/headlines-toolkit/ht-http-client.git"
373373
source: git
374374
version: "0.0.0"
@@ -395,7 +395,7 @@ packages:
395395
description:
396396
path: "."
397397
ref: HEAD
398-
resolved-ref: "47094efe56f4359473f37c19a6bbf809cf927dc2"
398+
resolved-ref: "2c594c8256181cdb86f03a11ed8ee1b9c5e79f28"
399399
url: "https://github.com/headlines-toolkit/ht-shared.git"
400400
source: git
401401
version: "0.0.0"

0 commit comments

Comments
 (0)