Skip to content

Commit

Permalink
Merge pull request #374 from hypha-dao/bugfix/add-scroll-to-dao-lists
Browse files Browse the repository at this point in the history
fix: add scroll to dao lists
  • Loading branch information
Zied-Dahmani authored Nov 20, 2024
2 parents 83e68a1 + e7031b6 commit e731b69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/ui/proposals/creation/components/dao_selection_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class _DaoSelectionViewState extends State<DaoSelectionView> {
height: MediaQuery.sizeOf(context).height,
color: context.isDarkMode ? HyphaColors.darkBlack : HyphaColors.offWhite,
padding: const EdgeInsets.symmetric(horizontal: 20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
child: ListView(
physics: const ClampingScrollPhysics(),
children: [
const SizedBox(height: 20),
Text(
Expand Down
10 changes: 4 additions & 6 deletions lib/ui/proposals/filter/components/filter_proposals_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@ class FilterProposalsView extends StatelessWidget {
return Scaffold(
backgroundColor: context.isDarkMode ? HyphaColors.darkBlack : HyphaColors.offWhite,
appBar: AppBar(
scrolledUnderElevation: 0,
title: const Text('Filter Proposals'),
),
body: BlocBuilder<FilterProposalsBloc, FilterProposalsState>(
builder: (context, state) {
return HyphaBodyWidget(pageState: state.pageState, success: (context) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 26.0, vertical: 20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
child: ListView(
physics: const ClampingScrollPhysics(),
children: [
Text(
'Select Proposal Status',
Expand Down Expand Up @@ -70,16 +71,13 @@ class FilterProposalsView extends StatelessWidget {
));
},
),
const Spacer(),
const SizedBox(height: 20),
HyphaAppButton(
title: 'SAVE FILTERS',
onPressed: () {
filterProposalsBloc.add(FilterProposalsEvent.saveFilters(filterProposalsBloc.selectedStatusIndexNotifier.value == 0 ? FilterStatus.active : FilterStatus.past));
},
),
const SizedBox(
height: 20,
)
],
),
);
Expand Down

0 comments on commit e731b69

Please sign in to comment.