[SOLVED] I've updated dartpad with the working solution https://dartpad.dartlang.org/42415ce855bfcdc148eb03872c170c77
run the code below on dartpad and resize the browser page vertically;
you will notice in the example on the right that
the SingleChildScrollView doesn't scroll and the Column overflows
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key key}) : super(key: key);
@override
Widget build(BuildContext context) => const MaterialApp(
home: MyHomePage(),
);
}
class MyHomePage extends StatelessWidget {
const MyHomePage({Key key}) : super(key: key);
@override
Widget build(BuildContext context) => Material(
child: Row(
children: [
SingleChildScrollView(
scrollDirection: Axis.vertical,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Text('''without wrapping the column in fixed heigth
[MainAxisAlignment.spaceEvenly] doesn't work'''),
for (int i = 0; i < 7; i++) const FlutterLogo(size: 80)
],
),
),
SingleChildScrollView(
scrollDirection: Axis.vertical,
child: SizedBox(
height: MediaQuery.of(context).size.height,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Text('''wrapping the column in fixed heigth
it overflow ignoring [SingleChildScrollView]'''),
for (int i = 0; i < 7; i++) const FlutterLogo(size: 80)
],
),
),
),
],
),
);
}
before posting this question I did some research
SingleChildScrollView inside Row
SingleChildScrollView 'cutting' the screen
SingleChildScrollView is not scrolling
SingleChildScrollView inside Row
and either the case is similar, but incompatible with my case
or just dodge the problem allthogether replacing one of the widget with a different one
(with altered result for my case);
I tried wrapping either the column and the scsv with a combination of
Expanded, ConstrainedBox, Container and SizedOverflowBox
without success, either breaking the app or losing the spaceEvenly property
I can use some help, thank you