gradient_button_first_testing 0.0.4

SDKflutter
Platformandroidioswindowslinuxmacosweb

A framework for checking values againt expectations and building custom espectations.

ElevatedButton( onPressed: () {}, style: ElevatedButton.styleFrom( padding: EdgeInsets.zero, ), child: Ink( decoration: BoxDecoration( gradient: const LinearGradient( begin: Alignment.topCenter, end: Alignment(0.8, 1), colors: [ Color(0xff1f005c), Color(0xff5b0060), Color(0xff870160), Color(0xffac255e), Color(0xffca485c), Color(0xffe16b5c), Color(0xfff39060), Color(0xffffb56b), ], ), borderRadius: BorderRadius.circular(widget.radius), ), child: Container( height: 50, width: 150, alignment: Alignment.center, child: Text( widget.title.toString(), style: const TextStyle(color: Colors.white), // Text remains white ), ), ), );