diff --git a/packages/firebase_core/firebase_core/example/lib/main.dart b/packages/firebase_core/firebase_core/example/lib/main.dart index f4e5ed47ca23..08d457bfbc85 100644 --- a/packages/firebase_core/firebase_core/example/lib/main.dart +++ b/packages/firebase_core/firebase_core/example/lib/main.dart @@ -36,7 +36,6 @@ class MyApp extends StatelessWidget { FirebaseApp app = await Firebase.initializeApp(name: name, options: firebaseOptions); - assert(app != null); print('Initialized $app'); } diff --git a/packages/firebase_remote_config/firebase_remote_config/example/test_driver/firebase_remote_config_e2e.dart b/packages/firebase_remote_config/firebase_remote_config/example/test_driver/firebase_remote_config_e2e.dart index bd133e97ddc6..7d5b4d8dfffb 100644 --- a/packages/firebase_remote_config/firebase_remote_config/example/test_driver/firebase_remote_config_e2e.dart +++ b/packages/firebase_remote_config/firebase_remote_config/example/test_driver/firebase_remote_config_e2e.dart @@ -67,8 +67,9 @@ void testsMain() { ); await remoteConfig.setConfigSettings( RemoteConfigSettings( - fetchTimeout: const Duration(seconds: 10), - minimumFetchInterval: Duration.zero), + fetchTimeout: const Duration(seconds: 10), + minimumFetchInterval: Duration.zero, + ), ); expect(remoteConfig.settings.fetchTimeout, const Duration(seconds: 10)); expect(remoteConfig.settings.minimumFetchInterval, Duration.zero); diff --git a/packages/firebase_storage/firebase_storage/example/lib/main.dart b/packages/firebase_storage/firebase_storage/example/lib/main.dart index cf83a2c94d9b..be8bd49198a4 100755 --- a/packages/firebase_storage/firebase_storage/example/lib/main.dart +++ b/packages/firebase_storage/firebase_storage/example/lib/main.dart @@ -151,7 +151,7 @@ class _TaskManager extends State { Future _downloadBytes(firebase_storage.Reference ref) async { final bytes = await ref.getData(); // Download... - await saveAsBytes(bytes, 'some-image.jpg'); + await saveAsBytes(bytes!, 'some-image.jpg'); } Future _downloadLink(firebase_storage.Reference ref) async { diff --git a/packages/firebase_storage/firebase_storage/example/lib/save_as/save_as_interface.dart b/packages/firebase_storage/firebase_storage/example/lib/save_as/save_as_interface.dart index faa466b76995..a6b858bb2ab1 100644 --- a/packages/firebase_storage/firebase_storage/example/lib/save_as/save_as_interface.dart +++ b/packages/firebase_storage/firebase_storage/example/lib/save_as/save_as_interface.dart @@ -1,6 +1,6 @@ import 'dart:typed_data'; /// Present a dialog so the user can save as... a bunch of bytes. -Future saveAsBytes(Uint8List? bytes, String suggestedName) async { +Future saveAsBytes(Uint8List bytes, String suggestedName) async { return; }