Skip to content

Commit

Permalink
Fix layout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Dec 2, 2024
1 parent b8831d0 commit f10d165
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions lib/ui/app/forms/client_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,20 @@ class ClientPicker extends StatelessWidget {
final store = StoreProvider.of<AppState>(context);
final state = store.state;

return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
EntityDropdown(
entityType: EntityType.client,
labelText: localization.client,
entityId: clientId,
autofocus: autofocus,
entityList: memoizedDropdownClientList(clientState.map,
clientState.list, state.userState.map, state.staticState),
entityMap: clientState.map,
validator: (String? val) => isRequired && (val ?? '').trim().isEmpty
? AppLocalization.of(context)!.pleaseSelectAClient
: null,
onSelected: onSelected,
onAddPressed: onAddPressed,
excludeIds: excludeIds,
),
],
return EntityDropdown(
entityType: EntityType.client,
labelText: localization.client,
entityId: clientId,
autofocus: autofocus,
entityList: memoizedDropdownClientList(clientState.map, clientState.list,
state.userState.map, state.staticState),
entityMap: clientState.map,
validator: (String? val) => isRequired && (val ?? '').trim().isEmpty
? AppLocalization.of(context)!.pleaseSelectAClient
: null,
onSelected: onSelected,
onAddPressed: onAddPressed,
excludeIds: excludeIds,
);
}
}

0 comments on commit f10d165

Please sign in to comment.