skip to Main Content

Flutter: Gridview list with both images and videos throwing an error

I have no idea what this error message means: lib/main.dart:29:19: Error: The argument type 'Object' can't be assigned to the parameter type 'Widget?'. 'Object' is from 'dart:core'. 'Widget' is from 'package:flutter/src/widgets/framework.dart' >('../../flutter/packages/flutter/lib/src/widgets/framework.dart'). ? Image.network('https://picsum.photos/200/300') ^ Failed to compile application. body:…

VIEW QUESTION

how to mock Supabase with Flutter for unit testing?

I'm trying to do unit test with Supabase in Flutter like the code bellow: import 'package:bloc_test/bloc_test.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/mockito.dart'; import 'package:supabase_flutter/supabase_flutter.dart'; class TestMClass { SupabaseClient client; TestMClass({ required this.client, }); Future<AuthResponse> signinMc() async { final respnse = await client.auth…

VIEW QUESTION
Back To Top
Search