mirror of
https://github.com/flutter/samples.git
synced 2025-11-14 11:28:36 +00:00
Flutter 3.29 beta (#2571)
This commit is contained in:
@@ -10,10 +10,12 @@ import 'package:flutter/foundation.dart';
|
||||
class FakeContinentRepository implements ContinentRepository {
|
||||
@override
|
||||
Future<Result<List<Continent>>> getContinents() {
|
||||
return SynchronousFuture(Result.ok([
|
||||
const Continent(name: 'CONTINENT', imageUrl: 'URL'),
|
||||
const Continent(name: 'CONTINENT2', imageUrl: 'URL'),
|
||||
const Continent(name: 'CONTINENT3', imageUrl: 'URL'),
|
||||
]));
|
||||
return SynchronousFuture(
|
||||
Result.ok([
|
||||
const Continent(name: 'CONTINENT', imageUrl: 'URL'),
|
||||
const Continent(name: 'CONTINENT2', imageUrl: 'URL'),
|
||||
const Continent(name: 'CONTINENT3', imageUrl: 'URL'),
|
||||
]),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,8 @@ class FakeItineraryConfigRepository implements ItineraryConfigRepository {
|
||||
@override
|
||||
Future<Result<ItineraryConfig>> getItineraryConfig() {
|
||||
return SynchronousFuture(
|
||||
Result.ok(itineraryConfig ?? const ItineraryConfig()));
|
||||
Result.ok(itineraryConfig ?? const ItineraryConfig()),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user