skip to Main Content

Flutter Error: Exception: Failed to load sertifikasi: type 'String' is not a substype of type 'int' of index

here is my code import 'package:flutter/material.dart'; import 'package:mobile_smarcerti/app/modules/sertifikasi/views/detail_sertifikasi_body.dart'; import 'package:mobile_smarcerti/app/modules/sertifikasi/views/detail_sertifikasi_page.dart'; import 'package:mobile_smarcerti/pages/upload_sertifikasi_dosen.dart'; import 'package:mobile_smarcerti/services/api_service.dart'; class SertifikasiBody extends StatefulWidget { const SertifikasiBody({super.key}); @override __SertifikasiScreenState createState() => __SertifikasiScreenState(); } class __SertifikasiScreenState extends State<SertifikasiBody> { late Future<List<dynamic>> _sertifikasiFuture; @override void initState() { super.initState();…

VIEW QUESTION

Flutter : force createState() for inherited StatefulWidget

Edit: solved by adding a unique key to the widget constructor call: Edit 2: as Randal Schwartz mentioned -> this is not a solution. Issue NOT solved and still open. @override SearchTermInput get searchTermInput => SearchTermInputOneString( key: UniqueKey(), currentSearchTermInputContent: widgetRef.read(apiEndpointUniversalSearchTermInputContentProvider),…

VIEW QUESTION
Back To Top
Search