diff --git a/examples/auth_token_with_isolate/client/lib/src/create_author/create_author_page.dart b/examples/auth_token_with_isolate/client/lib/src/create_author/create_author_page.dart index 7d76f920..c3483913 100644 --- a/examples/auth_token_with_isolate/client/lib/src/create_author/create_author_page.dart +++ b/examples/auth_token_with_isolate/client/lib/src/create_author/create_author_page.dart @@ -66,10 +66,8 @@ class _CreateAuthorPageState extends State { const SizedBox(height: 16), if (error != null) Text(error!, - style: Theme.of(context) - .textTheme - .bodyText2! - .copyWith(color: Theme.of(context).errorColor)), + style: Theme.of(context).textTheme.bodyMedium!.copyWith( + color: Theme.of(context).colorScheme.error)), Consumer(builder: (context, ref, _) { return ElevatedButton( onPressed: loading diff --git a/examples/pokemon_explorer/lib/src/app.dart b/examples/pokemon_explorer/lib/src/app.dart index a26ce273..cf1e1844 100644 --- a/examples/pokemon_explorer/lib/src/app.dart +++ b/examples/pokemon_explorer/lib/src/app.dart @@ -17,7 +17,7 @@ class App extends StatelessWidget { builder: (_) => PokemonDetailScreen( id: (settings.arguments as Map)["id"]!)); default: - return MaterialPageRoute(builder: (_) => Scaffold()); + return MaterialPageRoute(builder: (_) => const Scaffold()); } }, ); diff --git a/examples/pokemon_explorer/lib/src/pokemon_card.dart b/examples/pokemon_explorer/lib/src/pokemon_card.dart index 8eb8ff62..ac45290a 100644 --- a/examples/pokemon_explorer/lib/src/pokemon_card.dart +++ b/examples/pokemon_explorer/lib/src/pokemon_card.dart @@ -5,7 +5,7 @@ import './graphql/__generated__/pokemon_card_fragment.data.gql.dart'; class PokemonCard extends StatelessWidget { final GPokemonCard pokemon; - const PokemonCard({required this.pokemon}); + const PokemonCard({super.key, required this.pokemon}); @override Widget build(BuildContext context) { @@ -30,15 +30,15 @@ class PokemonCard extends StatelessWidget { ), Text( pokemon.name, - style: Theme.of(context).textTheme.headline6, + style: Theme.of(context).textTheme.titleLarge, ), Text( 'height: ${pokemon.height?.in_meter ?? 0}', - style: Theme.of(context).textTheme.subtitle1, + style: Theme.of(context).textTheme.titleMedium, ), Text( 'weight: ${pokemon.weight?.in_kg ?? 0}', - style: Theme.of(context).textTheme.subtitle1, + style: Theme.of(context).textTheme.titleMedium, ) ], ), diff --git a/examples/pokemon_explorer/lib/src/pokemon_detail.dart b/examples/pokemon_explorer/lib/src/pokemon_detail.dart index 6180ca10..292464db 100644 --- a/examples/pokemon_explorer/lib/src/pokemon_detail.dart +++ b/examples/pokemon_explorer/lib/src/pokemon_detail.dart @@ -13,7 +13,7 @@ class PokemonDetailScreen extends StatelessWidget { final int id; - PokemonDetailScreen({required this.id}); + PokemonDetailScreen({super.key, required this.id}); @override Widget build(BuildContext context) { @@ -30,7 +30,7 @@ class PokemonDetailScreen extends StatelessWidget { if (response!.loading) return Scaffold( appBar: AppBar(), - body: Center(child: CircularProgressIndicator())); + body: const Center(child: CircularProgressIndicator())); final pokemon = response.data?.pokemon; @@ -43,20 +43,20 @@ class PokemonDetailScreen extends StatelessWidget { PokemonCard( pokemon: pokemon, ), - Padding( - padding: const EdgeInsets.all(8.0), + const Padding( + padding: EdgeInsets.all(8.0), ), Text( 'Height', - style: Theme.of(context).textTheme.headline6, + style: Theme.of(context).textTheme.titleLarge, ), if (pokemon != null) Text('${pokemon.height?.in_meter ?? 0}'), - Padding( - padding: const EdgeInsets.all(8.0), + const Padding( + padding: EdgeInsets.all(8.0), ), Text( 'Weight', - style: Theme.of(context).textTheme.headline6, + style: Theme.of(context).textTheme.titleLarge, ), if (pokemon != null) Text('${pokemon.weight?.in_kg ?? 0}'), ], diff --git a/examples/pokemon_explorer/lib/src/pokemon_list.dart b/examples/pokemon_explorer/lib/src/pokemon_list.dart index 9704a8b1..ef967107 100644 --- a/examples/pokemon_explorer/lib/src/pokemon_list.dart +++ b/examples/pokemon_explorer/lib/src/pokemon_list.dart @@ -13,11 +13,13 @@ import './pokemon_card.dart'; class PokemonListScreen extends StatelessWidget { final client = GetIt.I(); + PokemonListScreen({super.key}); + @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( - title: Text('All Pokemon'), + title: const Text('All Pokemon'), ), body: Operation( client: client, diff --git a/examples/pokemon_explorer/pubspec.yaml b/examples/pokemon_explorer/pubspec.yaml index 522473b4..05af6760 100644 --- a/examples/pokemon_explorer/pubspec.yaml +++ b/examples/pokemon_explorer/pubspec.yaml @@ -2,7 +2,7 @@ name: pokemon_explorer version: 0.0.3-dev.4 publish_to: none environment: - sdk: '>=2.12.0 <3.0.0' + sdk: '>=3.0.0 <4.0.0' dependencies: gql_link: '>=0.5.0 <2.0.0' gql_http_link: '>=0.4.0 <2.0.0' diff --git a/packages/ferry/lib/src/gql_typed_link.dart b/packages/ferry/lib/src/gql_typed_link.dart index 03b9ffa4..77ebf278 100644 --- a/packages/ferry/lib/src/gql_typed_link.dart +++ b/packages/ferry/lib/src/gql_typed_link.dart @@ -42,6 +42,7 @@ class GqlTypedLink extends TypedLink { : ServerException( originalException: error, parsedResponse: null, + originalStackTrace: stackTrace, ), dataSource: DataSource.Link, ),