Answers for "flutter gradient background in flutter"

1

add gradient bg to container in flutter

body: Container(
  decoration: BoxDecoration(
    gradient: LinearGradient(
      colors: [Colors.green, Colors.blue])
  ),
  child: Center(
    child: Text('Gradients are cool!',
      style: TextStyle(
        fontSize: 35,
        color: Colors.white,
      ),
    ),
  ),
),
Posted by: Guest on October-26-2020

Code answers related to "flutter gradient background in flutter"

Browse Popular Code Answers by Language