Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add scroll to dao lists #374

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading