New registration bug fixed (init data not working on web)
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:tasktracker/Categories.dart';
|
||||
@@ -66,8 +68,13 @@ extension HexColor on Color {
|
||||
'${blue.toRadixString(16).padLeft(2, '0')}';
|
||||
}
|
||||
|
||||
void main() {
|
||||
void main() async {
|
||||
//Wakelock.enable(); // or Wakelock.toggle(on: true);
|
||||
// WidgetsFlutterBinding.ensureInitialized();
|
||||
//
|
||||
// ByteData data = await PlatformAssetBundle().load('assets/ca/certificate.crt');
|
||||
// SecurityContext.defaultContext.setTrustedCertificatesBytes(data.buffer.asUint8List());
|
||||
|
||||
runApp(const MyApp());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user