Null safety

This commit is contained in:
Hillel Coren 2023-10-05 11:32:43 +03:00
parent d703646132
commit befbe8f431
2 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,7 @@ class _EntityListState extends State<EntityList> {
if (selectedIndex >= 0) { if (selectedIndex >= 0) {
_firstRowIndex = (selectedIndex / rowsPerPage).floor() * rowsPerPage; _firstRowIndex = (selectedIndex / rowsPerPage).floor() * rowsPerPage;
} }
} else { } else if (state.historyList.isNotEmpty) {
final history = state.historyList.first; final history = state.historyList.first;
if (history.page != null) { if (history.page != null) {
_firstRowIndex = history.page! * rowsPerPage; _firstRowIndex = history.page! * rowsPerPage;

View File

@ -169,9 +169,9 @@ class ClientOverview extends StatelessWidget {
IconMessage(client.privateNotes, iconData: Icons.lock), IconMessage(client.privateNotes, iconData: Icons.lock),
ListDivider() ListDivider()
], ],
if (client.hasGroup) if (client.hasGroup && group != null)
EntityListTile( EntityListTile(
entity: group!, entity: group,
isFilter: isFilter, isFilter: isFilter,
), ),
for (var customerReference in tokenMap.keys) ...[ for (var customerReference in tokenMap.keys) ...[