Material(
elevation: 6,
borderRadius: BorderRadius.circular(20),
child: InkWell(
onTap: () {},
child: Container(
height: 30.0, //MediaQuery.of(context).size.width * .08,
width: 120.0, //MediaQuery.of(context).size.width * .3,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20),
),
child: Row(
children: <Widget>[
LayoutBuilder(builder: (context, constraints) {
print(constraints);
return Container(
height: constraints.maxHeight,
width: constraints.maxHeight,
decoration: BoxDecoration(
color: Colors.teal.shade800,
borderRadius: BorderRadius.circular(20),
),
child:const Icon(
Icons.done_outline,
color: Colors.white,
size: 20,
),
);
}),
const Expanded(
child: CustomText(
text: " Approve",
size: 16,
textColor: darkblueColor,
)),
],
),
),
),
),
Comments
Post a Comment