Solution for Manabie Challenge.
Follow instruction in Get started to setup project.
flutter test
flutter drive --target=test_driver/app.dart
- Tapping on a card in the list view only rebuilds (build method is called) the detailed container (the list view must NOT be rebuilt).
- Tapping on the detailed container only rebuilds the detailed container and the corresponding card in the list view (other cards in the list view must not be rebuit)
We must enable Repaint Rainbow
to see which widget has been rerendered.
We can do that by changing the main()
method in lib/main.dart
to:
import 'package:flutter/rendering.dart';
void main(){
debugRepaintRainbowEnabled = true;
runApp(App());
}
or we can enable it in IDEs