flutter_architecture_samples
flutter_architecture_samples copied to clipboard
TodoMVC for Flutter
I'm trying to run the change_notifier_provider example and am getting the error below when trying to run on an iPhone 12 Pro simulator. I'm running in VS Code. $ flutter...
How to fix below problem ChangeNotify cannot run in flutter 2.0 /home/ykwings/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.3/lib/shared_preferences.dart:146:15: Error: The method 'setMockMethodCallHandler' isn't defined for the class 'MethodChannel'. - 'MethodChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/home/ykwings/flutter/packages/flutter/lib/src/services/platform_channel.dart').
Hi, all great resource! Little confused by this page https://github.com/brianegan/flutter_architecture_samples/blob/master/change_notifier_provider/lib/edit_todo_screen.dart It appears to be updating and passing changes back using a callback rather than provider. Any reason for this? `...
I've tried fixing using MockFirebaseAuth.instance by defining get in MockFirebaseAuth + initializing FirebaseApp with TestWidgetsFlutterBinding. Problem code posted below... `firebase_flutter_repository_test.dart`: ``` import 'dart:async'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:firebase_auth/firebase_auth.dart'; import 'package:firebase_flutter_repository/firebase_user_repository.dart'; import...
In architecture samples is missing [Riverpod](https://pub.dev/packages/riverpod) example app.
How do we get code coverage from instrumented ui tests that we can get into coveralls or sonarqube?
Rvms
Hi Brian, I finally got my packages as I want them and time to port your example. Cheers Thomas
I was wondering where is the best place to handle converting a todo entity from firestore? - If i added a `Todo.fromFirestore` method, then the repository_core would have a cloud_firestore...
Add an example that uses [binder](https://github.com/letsar/binder).