You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Return widget for list
Widget _getListWidget(BuildContext context) {
if (StateContainer.of(context).wallet == null ||
StateContainer.of(context).wallet.historyLoading) {
// Loading Animation
return ReactiveRefreshIndicator(
backgroundColor: StateContainer.of(context).curTheme.backgroundDark,
onRefresh: _refresh,
isRefreshing: _isRefreshing,
child: ListView.builder(
padding: EdgeInsetsDirectional.fromSTEB(0, 5.0, 0, 15.0),
itemCount: _getLoadingTransactionCount(), // Define this function
itemBuilder: (context, index) {
return _buildLoadingTransactionCard(index, context);
},
),
);
} else if (StateContainer.of(context).wallet.history.length == 0) {
// Code for when wallet history is empty
} else {
// Code for when wallet history is not empty
}
// Additional code for other cases
}
Hello. Regarding the following code:
https://github.com/appditto/natrium_wallet_flutter/blob/1e046ea64a23d54ec30138361d68ed5993a1efd5/lib/ui/home_page.dart#L547C3-L644C6
For better perfomance, it is recommended to use ListView.builder
The text was updated successfully, but these errors were encountered: