flutter

Radial Gradient Container

Widget getUIWidget() {
  return Container(
    child: Text("Hello"),
    width: 300.0,
    height: 300.0,
    decoration: BoxDecoration(
        gradient: RadialGradient(
      colors: [Colors.blue, Colors.blue[900]],
    )),
  );
}
Was this helpful?