Silver Multi Box Adaptor Dart Failed Assertion Error Flutter

admin_img Posted By Bajarangi soft , Posted On 03-11-2020

I'm getting this Exception from flutter package sliver.dart. i experienced a weird issue and do not know where it comes from. Everything used to work fine until today. Now i get this error:

Silver Multi Box Adaptor Dart Failed Assertion Error Flutter

Failed Assertion Error

 I am using sliver and I faced this issue.
Flutter exception 'package:flutter/src/widgets/sliver.dart': Failed assertion 'child != null' is not true
Solution :
  
Expanded(

  child: StreamBuilder<Object>(
    stream: null,
    builder: (context, snapshot) {
      return ListView(
        scrollDirection: Axis.vertical,
        padding: EdgeInsets.all(10.0),
        children: _listViewData.reversed.map((data) {
          return Dismissible(
            key: Key(data),
            child: ListTile(
              title: Text(data),
            ),
          );
        }).toList(),
      );
    }
  ),
),



 

Related Post