Answers for "flutter card background gradient"

0

gradient container flutter

decoration: BoxDecoration(
            gradient: LinearGradient(
                colors: [
                  const Color(0xFF3366FF),
                  const Color(0xFF00CCFF),
                ],
                begin: const FractionalOffset(0.0, 0.0),
                end: const FractionalOffset(1.0, 0.0),
                stops: [0.0, 1.0],
                tileMode: TileMode.clamp,
            ),
          ),
Posted by: Guest on July-05-2020
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
0

flutter card background gradient

Container(
                  width: width / 1.2,
                  height: height / 6,
                  decoration: BoxDecoration(
                    gradient: LinearGradient(
                      colors: [
                        DynamicColor().primarycolor,
                        Color(0xFFFFFFFF),
                      ],
                      begin: const FractionalOffset(0.0, 0.0),
                      end: const FractionalOffset(1.0, 0.0),
                      stops: [0.0, 1.0],
                      tileMode: TileMode.clamp,
                    ),
                  ),
                  child: Card(
                    // color: DynamicColor().primarycolor,
                    elevation: 2,
                    shape: RoundedRectangleBorder(
                      borderRadius: BorderRadius.circular(10.0),
                    ),
                  ),
                ),
Posted by: Guest on October-29-2021

Code answers related to "flutter card background gradient"

Browse Popular Code Answers by Language