This commit is contained in:
Leon Bösche
2025-12-17 17:55:57 +01:00
parent 209dcb3a08
commit e5a4de7aab

View File

@@ -123,22 +123,31 @@ class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
builder: (context, state) {
if (state is OrganizationLoaded) {
final orgs = state.organizations;
return Row(
return Column(
children: [
Row(
children: [
...orgs.map(
(org) => Row(
children: [
_buildOrgButton(org, org.id == state.selectedOrg?.id, () {
_buildOrgButton(
org,
org.id == state.selectedOrg?.id,
() {
context.read<OrganizationBloc>().add(
SelectOrganization(org.id),
);
}),
},
),
const SizedBox(width: 16),
],
),
),
_buildAddButton(() => _showCreateOrgDialog(context)),
],
),
const Divider(height: 1),
],
);
} else {
return const SizedBox.shrink();
@@ -288,7 +297,6 @@ class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
children: [
const SizedBox(height: 8),
_buildOrgRow(context),
const Divider(height: 1),
Expanded(
child: _buildDrive(orgState),
),