-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FlutterException: Null check operator used on a null value #58
Comments
@LGang can you add some more information on what and when you run into this exception? |
Online logs are reported up and cannot be reproduced |
Partial code LoadingMoreCustomScrollView(
controller: controller.scrollController,
physics: const ClampingScrollPhysics(),
cacheExtent: 800,
slivers: <Widget>[
SliverPersistentHeader(
delegate: PlaceholderPersistentHeaderDelegate(
child: _buildTabBar(0)),
floating: true,
),
SliverPersistentHeader(
delegate: PersistentHeaderDelegate(
child: Obx(() => _buildOrderMenu(controller.orderMenus)),
),
pinned: true,
),
Obx(() => controller.categoryList.isNotEmpty
? SliverToBoxAdapter(
child: _buildRecommendSubType(),
)
: const SliverToBoxAdapter()),
SliverStack(
children: [
SliverPositioned(
child: Container(
height: 192,
decoration: const BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [
Colors.white,
Color(0xFFF7F8FA),
],
),
),
),
left: 0,
right: 0,
top: 0,
height: 192,
),
Obx(
() => LoadingMoreSliverList<GoodsCardModel>(
SliverListConfig<GoodsCardModel>(
itemBuilder: (BuildContext context,
GoodsCardModel viewModel, int index) {
return _buildListitemView(viewModel, index);
},
sourceList: controller.repository,
padding: !controller.gridLayout.value
? EdgeInsets.zero
: const EdgeInsets.only(
left: 12, right: 12, top: 4),
extendedListDelegate: !controller.gridLayout.value
? null
: const SliverWaterfallFlowDelegateWithMaxCrossAxisExtent(
maxCrossAxisExtent: 300,
crossAxisSpacing: 7,
mainAxisSpacing: 7,
),
),
),
),
],
),
],
) |
Which version of sliver_tools are you using? |
0.2.7 |
@LGang I'v taken a look at what is crashing. I'll add an assert for this case in an upcoming release though! |
Stack:
The text was updated successfully, but these errors were encountered: