- Clone or download this repository
- Run
flutter clean
- Run
flutter pub get
- Run
flutter packages pub run build_runner build --delete-conflicting-outputs
- Build and feel free to use this app without any account
- Show user list screen
- Navigate to user detail screen when user item clicked
- Network
- Retrofit: https://pub.dev/packages/retrofit)
- Dio: https://pub.dev/packages/dio
- JSON Parser: https://pub.dev/packages/json_serializable
- Script build json object:
import 'package:json_annotation/json_annotation.dart';
part '${NAME}.g.dart';
@JsonSerializable()
class ${ObjectName}{
factory ${ObjectName}.fromJson(Map<String, dynamic> json) => _${ObjectName}FromJson(json);
Map<String, dynamic> toJson() => _${ObjectName}ToJson(this);
}
- Then run ```flutter packages pub run build_runner build --delete-conflicting-outputs``` to generate model
- Dependency
- State management:
- Controller: