From 53e444d5b468aab32c8409671d231a46370d36a4 Mon Sep 17 00:00:00 2001 From: Elham Rababah Date: Sun, 8 Nov 2020 16:15:03 +0200 Subject: [PATCH] remove options from setting page --- lib/pages/setting/setting_page.dart | 144 +--------------------------- 1 file changed, 4 insertions(+), 140 deletions(-) diff --git a/lib/pages/setting/setting_page.dart b/lib/pages/setting/setting_page.dart index 860db75..a7f5389 100644 --- a/lib/pages/setting/setting_page.dart +++ b/lib/pages/setting/setting_page.dart @@ -26,13 +26,12 @@ class SettingPage extends StatelessWidget { isAppBarGradient: true, body: SingleChildScrollView( child: Container( + height: MediaQuery.of(context).size.height, decoration: BoxDecoration( gradient: LinearGradient( // 10% of the width, so there are ten blinds. - colors: [ - const Color(0xff45B7AE), - const Color(0xff119FA9) - ], //[const Color(0xff30B7B9), const Color(0xff3AB2AD)], // whitish to gray + colors: [const Color(0xff45B7AE), const Color(0xff119FA9)], + //[const Color(0xff30B7B9), const Color(0xff3AB2AD)], // whitish to gray tileMode: TileMode.clamp, // repeats the gradient over the canvas ), ), @@ -114,7 +113,7 @@ class SettingPage extends StatelessWidget { ), SizedBox( width: - MediaQuery.of(context).size.width * 0.05, + MediaQuery.of(context).size.width * 0.05, ), Text( TranslationBase.of(context).logout, @@ -140,141 +139,6 @@ class SettingPage extends StatelessWidget { ], ), ), - SizedBox( - height: MediaQuery.of(context).size.width * 0.05, - ), - InkWell( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Container( - margin: EdgeInsets.only(left: 15), - child: Row( - children: [ - Icon( - DriverApp.language_icon, - size: 40, - color: Colors.white, - ), - SizedBox( - width: - MediaQuery.of(context).size.width * 0.05, - ), - Text( - TranslationBase.of(context).languageText, - style: TextStyle( - fontWeight: FontWeight.w500, - color: Colors.white, - fontSize: 18), - ), - ], - ), - ), - SizedBox( - height: 10.0, - child: Center( - child: Container( - margin: EdgeInsetsDirectional.only( - start: 0, end: 30), - height: 1.0, - color: Colors.white, - ), - ), - ), - SizedBox( - height: MediaQuery.of(context).size.width * 0.05, - ), - ], - ), - ), - InkWell( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Container( - margin: EdgeInsets.only(left: 15), - child: Row( - children: [ - Icon( - DriverApp.settings_icon, - size: 40, - color: Colors.white, - ), - SizedBox( - width: - MediaQuery.of(context).size.width * 0.05, - ), - Text( - TranslationBase.of(context).settings, - style: TextStyle( - fontWeight: FontWeight.w500, - color: Colors.white, - fontSize: 18), - ), - ], - ), - ), - SizedBox( - height: 10.0, - child: Center( - child: Container( - margin: EdgeInsetsDirectional.only( - start: 0, end: 30), - height: 1.0, - color: Colors.white, - ), - ), - ), - SizedBox( - height: MediaQuery.of(context).size.width * 0.05, - ), - ], - ), - ), - InkWell( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Container( - margin: EdgeInsets.only(left: 15), - child: Row( - children: [ - Icon( - DriverApp.bell_icon, - size: 40, - color: Colors.white, - ), - SizedBox( - width: - MediaQuery.of(context).size.width * 0.05, - ), - Text( - TranslationBase.of(context).notification, - style: TextStyle( - fontWeight: FontWeight.w500, - color: Colors.white, - fontSize: 18), - ), - ], - ), - ), - SizedBox( - height: 10.0, - child: Center( - child: Container( - margin: EdgeInsetsDirectional.only( - start: 0, end: 30), - height: 1.0, - color: Colors.white, - ), - ), - ), - SizedBox( - height: MediaQuery.of(context).size.width * 0.05, - ), - ], - ), - ), ], ), ),