increase tap size for button

GET_CAPSULES_LDE-EKA
Lucas Delanier 2 years ago
parent 8d96fe5b18
commit d19ab6b368

@ -84,6 +84,7 @@ class _TopNavBarComponentState extends State<TopNavBarComponent> with TickerProv
Flexible(
flex: 1,
child: GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: () {
Navigator.of(context).push(routeAddFriend());
},
@ -145,6 +146,7 @@ class _TopNavBarComponentState extends State<TopNavBarComponent> with TickerProv
),
),
GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: () {
if (choice) {
setState(() {

@ -155,17 +155,22 @@ class _AddFriendScreenState extends State<AddFriendScreen> {
),
),
GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: () {
Navigator.pop(context);
},
child: Transform(
alignment: Alignment.center,
transform: Matrix4.rotationY(3.14159265),
child: Container(
height: 25,
width: 25,
child: const Icon(Icons.arrow_back_ios, color: Colors.white, size: 15)),
)),
alignment: Alignment.center,
transform: Matrix4.rotationY(3.14159265),
child: Container(
padding: EdgeInsets.symmetric(horizontal: 10),
height: 30,
width: 30,
child: const Image(
image: AssetImage("assets/images/return_icon.png"),
height: 8,
),
))),
],
),
),

@ -30,12 +30,14 @@ class _ProfileScreenState extends State<ProfileScreen> {
alignment: Alignment.centerLeft,
children: [
GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: () {
Navigator.pop(context);
},
child: Container(
height: 15,
width: 15,
padding: EdgeInsets.symmetric(horizontal: 10),
height: 30,
width: 30,
child: Image(
image: AssetImage("assets/images/return_icon.png"),
height: 8,
@ -44,10 +46,7 @@ class _ProfileScreenState extends State<ProfileScreen> {
Align(
child: Text(
"Profile",
style: GoogleFonts.plusJakartaSans(
color: Colors.white,
fontSize: 14,
fontWeight: FontWeight.bold),
style: GoogleFonts.plusJakartaSans(color: Colors.white, fontSize: 14, fontWeight: FontWeight.bold),
),
)
],
@ -60,8 +59,7 @@ class _ProfileScreenState extends State<ProfileScreen> {
height: double.infinity,
color: bgColor,
child: SingleChildScrollView(
physics: const BouncingScrollPhysics(
decelerationRate: ScrollDecelerationRate.fast),
physics: const BouncingScrollPhysics(decelerationRate: ScrollDecelerationRate.fast),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: settingPadding),
child: Column(
@ -70,18 +68,13 @@ class _ProfileScreenState extends State<ProfileScreen> {
children: [
Padding(
padding: EdgeInsets.only(top: 68.h, bottom: 40),
child:
ProfileComponent(user: MyApp.userViewModel.userCurrent),
child: ProfileComponent(user: MyApp.userViewModel.userCurrent),
),
Padding(
padding:
const EdgeInsets.only(bottom: 12, left: defaultPadding),
padding: const EdgeInsets.only(bottom: 12, left: defaultPadding),
child: Text(
"Compte",
style: GoogleFonts.plusJakartaSans(
color: grayText,
fontWeight: FontWeight.w800,
fontSize: 16),
style: GoogleFonts.plusJakartaSans(color: grayText, fontWeight: FontWeight.w800, fontSize: 16),
),
),
ClipRRect(
@ -113,14 +106,10 @@ class _ProfileScreenState extends State<ProfileScreen> {
),
),
Padding(
padding: const EdgeInsets.only(
bottom: 12, left: defaultPadding, top: 40),
padding: const EdgeInsets.only(bottom: 12, left: defaultPadding, top: 40),
child: Text(
"Préférences",
style: GoogleFonts.plusJakartaSans(
color: grayText,
fontWeight: FontWeight.w800,
fontSize: 16),
style: GoogleFonts.plusJakartaSans(color: grayText, fontWeight: FontWeight.w800, fontSize: 16),
),
),
ClipRRect(

Loading…
Cancel
Save