Add new phone number tile action

This commit is contained in:
OmarHatem28 2022-07-06 16:31:21 +02:00
parent 7cb6e1b193
commit 9bf4e3a20e

View file

@ -48,26 +48,31 @@ class ActiveServicesBodyState extends State<ActiveServicesBody> {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( GestureDetector(
width: double.infinity, onTap: () {
padding: EdgeInsets.symmetric(horizontal: 24, vertical: 16), Navigator.pushNamed(context, Routes.cakePhoneProducts);
decoration: BoxDecoration( },
borderRadius: BorderRadius.all(Radius.circular(15)), child: Container(
gradient: LinearGradient( width: double.infinity,
colors: [ padding: EdgeInsets.symmetric(horizontal: 24, vertical: 16),
Theme.of(context).primaryTextTheme.subhead.color, decoration: BoxDecoration(
Theme.of(context).primaryTextTheme.subhead.decorationColor, borderRadius: BorderRadius.all(Radius.circular(15)),
], gradient: LinearGradient(
begin: Alignment.topLeft, colors: [
end: Alignment.bottomRight, Theme.of(context).primaryTextTheme.subhead.color,
Theme.of(context).primaryTextTheme.subhead.decorationColor,
],
begin: Alignment.topLeft,
end: Alignment.bottomRight,
),
), ),
child: Text(S.of(context).new_phone_number,
style: TextStyle(
color: Colors.white,
fontSize: 16,
fontWeight: FontWeight.w700,
)),
), ),
child: Text(S.of(context).new_phone_number,
style: TextStyle(
color: Colors.white,
fontSize: 16,
fontWeight: FontWeight.w700,
)),
), ),
const SizedBox(height: 8), const SizedBox(height: 8),
freeBalanceInfoRow(), freeBalanceInfoRow(),