From 9bf4e3a20eb5214b051c8e2895d8d0778a837980 Mon Sep 17 00:00:00 2001 From: OmarHatem28 Date: Wed, 6 Jul 2022 16:31:21 +0200 Subject: [PATCH] Add new phone number tile action --- .../cake_phone/active_services_page.dart | 41 +++++++++++-------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/lib/src/screens/cake_phone/active_services_page.dart b/lib/src/screens/cake_phone/active_services_page.dart index c6b258c85..8650308cb 100644 --- a/lib/src/screens/cake_phone/active_services_page.dart +++ b/lib/src/screens/cake_phone/active_services_page.dart @@ -48,26 +48,31 @@ class ActiveServicesBodyState extends State { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Container( - width: double.infinity, - padding: EdgeInsets.symmetric(horizontal: 24, vertical: 16), - decoration: BoxDecoration( - borderRadius: BorderRadius.all(Radius.circular(15)), - gradient: LinearGradient( - colors: [ - Theme.of(context).primaryTextTheme.subhead.color, - Theme.of(context).primaryTextTheme.subhead.decorationColor, - ], - begin: Alignment.topLeft, - end: Alignment.bottomRight, + GestureDetector( + onTap: () { + Navigator.pushNamed(context, Routes.cakePhoneProducts); + }, + child: Container( + width: double.infinity, + padding: EdgeInsets.symmetric(horizontal: 24, vertical: 16), + decoration: BoxDecoration( + borderRadius: BorderRadius.all(Radius.circular(15)), + gradient: LinearGradient( + colors: [ + 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), freeBalanceInfoRow(),