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

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

Loading…
Cancel
Save