Null safety
This commit is contained in:
parent
d703646132
commit
befbe8f431
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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) ...[
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue