1
0
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:
Eric Windmill
2025-02-12 18:08:01 -05:00
committed by GitHub
parent d62c784789
commit 719fd72c38
685 changed files with 76244 additions and 53721 deletions

View File

@@ -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'),
]),
);
}
}

View File

@@ -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