viewportConstraints

Widget build(BuildContext context) {
  return LayoutBuilder(
    builder: (BuildContext context, BoxConstraints viewportConstraints) {
      return SingleChildScrollView(
        child: ConstrainedBox(
          constraints: BoxConstraints(
            minHeight: viewportConstraints.maxHeight,
          ),
          child: Column(
            mainAxisSize: MainAxisSize.min,
            mainAxisAlignment: MainAxisAlignment.spaceAround,
            children: <Widget>[
              Container(
                // A fixed-height child.
                color: const Color(0xff808000), // Yellow
                height: 120.0,
              ),
              Container(
                // Another fixed-height child.
                color: const Color(0xff008000), // Green
                height: 600.0,
              ),
            ],
          ),
        ),
      );
    },
  );
}

Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
scroll page in flutter make a page scrollable flutter scroll overflow flutter scrollview in flutter example scrollable page dart flutter how to make page scrollable flutter make scafford scrollable flutter scrollable page flutter scroll page scrollview by default scrolling to top of page flutter flutter make page scrollable scroable page flutter vertical scroll view in flutter falcor Viewport SingleChildScrollView hasSize issue flutter flutter stack scrollable adding scrool view in flutter column only container scrollview in flutter setting viewport how to make stack view scrollable flutter scrollable layout in flutter ex column scroll into another container flutter stack how to wrap stack in scrollview flutter scroll view flutter flutter scrollview with padding in column flutter scaffold scroll never flutter scaffold scroll add scrollable flutter make flutter page scrollable scrollview to return stack flutter scrollview to scaffold flutter make overflow scrolling page flutter flutter overflow scroll singlechildscrollview flutter not working get scroll view in flutter flutter make whole page scrollable scaffold singlechildscrollview scrollview for page flutter how to scroll page in flutter how to make a view scrollable in flutter flutter scrollwview part of page scroll vertiocal oin single child view make scaffold child of widget to scroll flutter scrollable stack flutter flutter scaffold body scrollable make element scrollable only within container in flutter scrollview long as container flutter flutter container overflow scroll how to make a page scrollable flutter scaffold scroll flutter flutter scrollview inside scaffold flutter put a column in a scrollview flutter scrollable example stack widget scrollable flutter add scrollview in flutter flutter scrollview example flutter scrollable scaffold flutter scafflod scrollable flutter give scaffold body scrollable flutter scrollabl overflow scrollable scaffold flutter
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source