duytq94 / flutter-chat-demo

The chat app made by Flutter and Firebase
MIT License
1.74k stars 676 forks source link

Build failed with exception #69

Closed cuzzysoft closed 2 years ago

cuzzysoft commented 2 years ago
lib/utils/utilities.dart:6:29: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
 - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/C:/fluttersrc/flutter/packages/flutter/lib/src/widgets/binding.dart').
      return WidgetsBinding.instance!.window.viewInsets.bottom > 0;
                            ^
/C:/fluttersrc/flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.0/lib/src/interface/local_platform.dart:46:19: Error: Member not found: 'packageRoot'.
      io.Platform.packageRoot; // ignore: deprecated_member_use
                  ^^^^^^^^^^^

FAILURE: Build failed with an exception.
duytq94 commented 2 years ago

Hi, thanks for your report. I fixed it at https://github.com/duytq94/flutter-chat-demo/commit/046c6afb2bbc72b800434bfcc23dc1ae4897e04e