Another exception was thrown: type 'Map<String, bool>' is not a subtype of type…
- User
Another exception was thrown: type '_Map<String, bool>' is not a subtype of type 'Map<String, String>' in type cast. import 'package:flutter/material.dart'; import 'package:supabase_flutter/supabase_flutter.dart';
import 'package:sae_mobile/views/signout.dart';
import 'package:sae_mobile/models/User.dart' as user_model;
final SupabaseClient supabaseClient = Supabase.instance.client;
class ProfileView extends StatefulWidget { final user_model.User user; const ProfileView({super.key, required this.user});
@override State createState() => _ProfileState(); }
class _ProfileState extends State { @override Widget build(BuildContext context) { return Column( children: [ Text('Profile'), Text('Email: {widget.user.username}'), const SignOut(), SizedBox(height: 20), // Add your buttons ElevatedButton( style: ElevatedButton.styleFrom( shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(20), ), minimumSize: Size(double.infinity, 50), ), onPressed: () { Navigator.pushNamed(context, '/annonces', arguments: { 'isUserAnnonces': false, 'isReponduAnnonces': true }); }, child: Text('Mes Reservations'), ), SizedBox(height: 10), ElevatedButton( style: ElevatedButton.styleFrom( shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(20), ), minimumSize: Size(double.infinity, 50), ), onPressed: () { Navigator.pushNamed(context, '/annonces', arguments: { 'isUserAnnonces': true, 'isReponduAnnonces': false }); }, child: Text('Mes Annonces'), ), ], ); } } import 'package:flutter/material.dart'; import 'package:sae_mobile/models/Builder.dart' as builder_model; import 'package:sae_mobile/views/annonceTile.dart'; import 'package:sae_mobile/models/annonce.dart'; import 'package:supabase_flutter/supabase_flutter.dart';
- Assistant
- User
- Option 1: Change the Consumer to Expect bool
- Assistant
- User
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.