refactor(grants): wrap grant list in SingleChildScrollView
This commit is contained in:
@@ -19,8 +19,6 @@ String _formatError(Object error) {
|
|||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ─── Grant list ───────────────────────────────────────────────────────────────
|
|
||||||
|
|
||||||
class _GrantList extends StatelessWidget {
|
class _GrantList extends StatelessWidget {
|
||||||
const _GrantList({required this.grants});
|
const _GrantList({required this.grants});
|
||||||
|
|
||||||
@@ -28,22 +26,22 @@ class _GrantList extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Column(
|
return SingleChildScrollView(
|
||||||
children: [
|
child: Column(
|
||||||
for (var i = 0; i < grants.length; i++)
|
children: [
|
||||||
Padding(
|
for (var i = 0; i < grants.length; i++)
|
||||||
padding: EdgeInsets.only(
|
Padding(
|
||||||
bottom: i == grants.length - 1 ? 0 : 1.8.h,
|
padding: EdgeInsets.only(
|
||||||
|
bottom: i == grants.length - 1 ? 0 : 1.8.h,
|
||||||
|
),
|
||||||
|
child: GrantCard(grant: grants[i]),
|
||||||
),
|
),
|
||||||
child: GrantCard(grant: grants[i]),
|
],
|
||||||
),
|
),
|
||||||
],
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ─── Screen ───────────────────────────────────────────────────────────────────
|
|
||||||
|
|
||||||
@RoutePage()
|
@RoutePage()
|
||||||
class EvmGrantsScreen extends ConsumerWidget {
|
class EvmGrantsScreen extends ConsumerWidget {
|
||||||
const EvmGrantsScreen({super.key});
|
const EvmGrantsScreen({super.key});
|
||||||
|
|||||||
Reference in New Issue
Block a user