I have a GestureDetector as the below code:
GestureDetector(
onTapDown: _onTapDown,
onTapUp: _onTapUp,
child: Transform.scale(
scale: _scale,
child: _animatedButtonUI,
),
),
So all I need Iwant to high light the color when on click like the FlatButton as it have an attribute highlightColor...
Is there's a way to do something like this...
and here's the related widget for the GestureDetector:
Widget get _animatedButtonUI => Container(
height: 50,
width: 320,
decoration: BoxDecoration(
border: Border.all(
color: Color(0xFF9EC33B),
),
borderRadius: BorderRadius.circular(100.0),
color: Colors.white,
),
child: Padding(
padding: const EdgeInsets.only(left: 64),
child: Row(
children: <Widget>[
Image.asset(
'assets/images/icggl.png',
width: 24,
),
Center(
child: Padding(
padding: const EdgeInsets.only(left: 20),
child: Text(
'COTINUE WITH GOOGLE',
style: TextStyle(
fontSize: 13.0,
fontWeight: FontWeight.bold,
color: Color(0xFF9EC33B),
),
),
),
),
],
),
),
);