skip to Main Content

Flutter – Failed assertion: line 49 pos 16: 'initalPageIndex <= (imagesLink.length – 1) && initalPageIndex >= 0': is not true.)

I'm Trying To Show A Slider Using The Following Package fan_carousel_image_slider 0.1.2 Full Error Text: _AssertionError ('package:fan_carousel_image_slider/src/image_slider.dart': Failed assertion: line 49 pos 16: 'initalPageIndex <= (imagesLink.length - 1) && initalPageIndex >= 0': is not true.) I Tried To Change Attributes…

VIEW QUESTION

Flutter – A function body must be provided. Try adding a function body. StatelessWidget

enter image description here here is my code what to do? import 'package:flutter/material.dart'; import 'package:hms/screens/login_screen.dart'; void main(List<String> args) { runApp(MyApp()); } class MyApp extends StatelessWidget { MyApp({Key? key}) // ignore: empty_constructor_bodies @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false,…

VIEW QUESTION

Flutter – await Firebase.initializeApp(); causes error first time working but after my computer down and on not working

void main() async { WidgetsFlutterBinding.ensureInitialized(); if (kIsWeb) { await Firebase.initializeApp( options: const FirebaseOptions( apiKey: "", appId: "", messagingSenderId: "", projectId: "", storageBucket: "", ), ); } else { await Firebase.initializeApp(); } runApp(const MyApp()); } Exception has occurred. PlatformException (PlatformException(channel-error, Unable…

VIEW QUESTION

Unhandled Exception: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<dynamic>' Flutter dart

Am getting this error in flutter, dart. '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List' The Model used is, import 'dart:convert'; Areas areasFromJson(String str) => Areas.fromJson(json.decode(str)); String areasToJson(Areas data) => json.encode(data.toJson()); class Areas { bool success; Data data; String…

VIEW QUESTION
Back To Top
Search