Replies: 1 comment
-
Well I managed to get it working with this: class MyHomePage extends StatelessWidget {
const MyHomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: AlignedGridView.extent(
maxCrossAxisExtent: 300,
itemCount: 10,
itemBuilder: (context, index) {
return Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8),
border: Border.all(color: Colors.green, width: 2),
),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween, // Added here
children: [
Text('Test ' * index * 10),
ElevatedButton(onPressed: () {}, child: const Text('Button')),
],
),
);
},
),
);
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to know if it is possible to get the same behavior as a IntrinsidHeight ? In the following example How to get the button at the bottom of the card ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions