mirror of
https://github.com/amigan/calls.git
synced 2024-12-03 10:06:46 -05:00
Migrate to web
This commit is contained in:
parent
9dfab9511c
commit
58662a6fe0
3 changed files with 5 additions and 4 deletions
|
@ -1,14 +1,14 @@
|
||||||
import 'dart:html';
|
import 'package:web/web.dart' as web;
|
||||||
import 'package:web_socket_channel/web_socket_channel.dart';
|
import 'package:web_socket_channel/web_socket_channel.dart';
|
||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
|
|
||||||
class Storer {
|
class Storer {
|
||||||
Future<String?> getKey(String key) async {
|
Future<String?> getKey(String key) async {
|
||||||
return window.localStorage[key];
|
return web.window.localStorage[key];
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> setKey(String key, String value) async {
|
Future<void> setKey(String key, String value) async {
|
||||||
window.localStorage[key] = value;
|
web.window.localStorage[key] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -622,7 +622,7 @@ packages:
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "14.2.5"
|
version: "14.2.5"
|
||||||
web:
|
web:
|
||||||
dependency: transitive
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: web
|
name: web
|
||||||
sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb
|
sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb
|
||||||
|
|
|
@ -51,6 +51,7 @@ dependencies:
|
||||||
media_kit_libs_windows_audio: ^1.0.9
|
media_kit_libs_windows_audio: ^1.0.9
|
||||||
intl: ^0.19.0
|
intl: ^0.19.0
|
||||||
audio_session: ^0.1.21
|
audio_session: ^0.1.21
|
||||||
|
web: ^1.1.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|
Loading…
Reference in a new issue