Flutter – GestureDetector – onTap: widget.press(), – final Function press;- Navigator.of(context).push();
This is my first page (RecomendsPlants) and I want to move to another page called (DetailsScreen) RecomendsPlants: // ignore_for_file: prefer_const_constructors import 'package:flutter/material.dart'; import 'package:mr_plants_store/constants.dart'; import 'package:mr_plants_store/screens/details/details_screen.dart'; class RecomendsPlants extends StatefulWidget { const RecomendsPlants({super.key}); @override State createState() => _RecomendsPlantsState(); } class…