Home > Software engineering >  How could I create a two color background for my app, I'm not trying to make a gradient, so far
How could I create a two color background for my app, I'm not trying to make a gradient, so far

Time:07-19

Screenshot of a mobile app ui design.

mobile app ui

CodePudding user response:

Play with this widget and follow enter image description here

CodePudding user response:

You can use like this:

Scaffold (
              backgroundColor: Colors.red,
              body: Align(
                alignment: Alignment.bottomCenter,
                child: Container(
                  height: MediaQuery.of(context).size.height * 0.6,
                  decoration: BoxDecoration(
                    color: Colors.white,
                    borderRadius: BorderRadius.only(topLeft: Radius.circular(12),topRight: Radius.circular(12)),
                  ),
                ),
              )
          )
  • Related