mirror of
https://github.com/flutter/samples.git
synced 2026-04-06 03:31:03 +00:00
Flutter 3.29 beta (#2571)
This commit is contained in:
@@ -8,7 +8,8 @@ final http.Client mockClient = MockClient(_mockHandler);
|
||||
|
||||
Future<http.Response> _mockHandler(http.Request request) async {
|
||||
var decodedJson = Map<String, dynamic>.from(
|
||||
json.decode(request.body) as Map<String, dynamic>);
|
||||
json.decode(request.body) as Map<String, dynamic>,
|
||||
);
|
||||
|
||||
if (decodedJson['email'] == 'root' && decodedJson['password'] == 'password') {
|
||||
return http.Response('', 200);
|
||||
|
||||
Reference in New Issue
Block a user