Skip to content

Commit

Permalink
Merge branch 'feat/rust-key-derivation' into feat/dart-key-derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
dtscalac committed Nov 12, 2024
2 parents d745794 + 483277e commit 580fe8d
Show file tree
Hide file tree
Showing 42 changed files with 1,082 additions and 1,249 deletions.

This file was deleted.

144 changes: 0 additions & 144 deletions catalyst_voices/apps/voices/lib/pages/treasury/campaign_details.dart

This file was deleted.

This file was deleted.

32 changes: 32 additions & 0 deletions catalyst_voices/apps/voices/lib/pages/treasury/treasury_body.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import 'package:catalyst_voices/pages/treasury/treasury_campaign_setup.dart';
import 'package:catalyst_voices_view_models/catalyst_voices_view_models.dart';
import 'package:flutter/material.dart';

class TreasuryBody extends StatelessWidget {
final List<TreasurySection> sections;

const TreasuryBody({
super.key,
required this.sections,
});

@override
Widget build(BuildContext context) {
return ListView.separated(
padding: const EdgeInsets.only(top: 10),
itemCount: sections.length,
itemBuilder: (context, index) {
final section = sections[index];

switch (section) {
case CampaignSetup():
return TreasuryCampaignSetup(
key: ValueKey('CampaignSetupSection[${section.id}]Key'),
data: section,
);
}
},
separatorBuilder: (context, index) => const SizedBox(height: 24),
);
}
}

This file was deleted.

Loading

0 comments on commit 580fe8d

Please sign in to comment.