We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seems linked to #140
I created a very basic Riverpod app and it cannot be build by zapp.run but the most curious part is if I load it from a github repo it will work.
Here's the code and riverpod_flutter is in the dependencies even if IDE display otherwise.
Thank you!
import 'dart:async'; import 'dart:math'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; main() { runApp(const ProviderScope( child: MaterialApp( debugShowCheckedModeBanner: false, home: Scaffold( body: AffichagePlanetes(), )), )); } final commission = StreamProvider((ref) => Stream.periodic(const Duration(milliseconds: 800), (_) => Random().nextBool())); final planetes = Provider<Planetes>((ref) => ref.watch(commission).maybeWhen(data: (decision) => Planetes(etendu: decision), orElse: () => const Planetes())); class AffichagePlanetes extends ConsumerWidget { const AffichagePlanetes({super.key}); @override Widget build(context, ref) => ListView(children: [ // Surveiller la décision de la Commission for (final planet in ref.watch(planetes).liste) ListTile(title: Text(planet, style: const TextStyle(fontSize: 22))), ]); } class Planetes { static const _liste = [ 'Mercure', 'Vénus', 'Terre', 'Mars', 'Jupiter', 'Saturne', 'Uranus', 'Neptune', ]; List<String> get liste => etendu ? [..._liste, 'Pluton'] : _liste; final bool etendu; const Planetes({this.etendu = false}); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Seems linked to #140
I created a very basic Riverpod app and it cannot be build by zapp.run but the most curious part is if I load it from a github repo it will work.
Here's the code and riverpod_flutter is in the dependencies even if IDE display otherwise.
Thank you!
The text was updated successfully, but these errors were encountered: