Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- child: activeOrders == null
- ? Container()
- : activeOrders.isEmpty
- ? EmptyScreenWidget(
- title: AppLocalizations.of(
- context, WordKeys.noActiveOrdersTitle),
- body: AppLocalizations.of(
- context, WordKeys.noActiveOrdersBody),
- imagePath: 'assets/icons/no_orders.png',
- imageHeight: 100.0,
- imageWidth: 100.0,
- )
- : RefreshIndicator(
- color: colors.accent,
- onRefresh: _refresh,
- child: ListView(
- controller: _scrollController,
- padding: const EdgeInsets.only(bottom: 28, top: 16),
- children: activeOrders
- .map((data) => _buildOrderCard(data))
- .toList()),
- ),
- ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement