skip to Main Content

Flutter – How to Clip InkWell in ListView

I have a ListView with rounded edges. How can I make the splash from the InkWell coincide with the borders of the ListView? What splash look like now: My code: final borderRadius = BorderRadius.circular(20.0); return RefreshIndicator( onRefresh: _refreshList, child: Padding(…

VIEW QUESTION

Using Single singlechildscrollview while using scrolllable listview.builder (flutter)

This is my whole code: import 'package:flutter/material.dart'; import 'package:testproject/components/event_tile.dart'; import 'package:testproject/components/mybutton.dart'; class MenuPage extends StatelessWidget { const MenuPage({super.key}); @override Widget build(BuildContext context) { List EventList = [ EventTile( name: "Mitama Matsuri festivial", price: "€ 49", imagePath: "lib/images/japan7.png", rating: "5", details:…

VIEW QUESTION

Flutter – how can i get the String value of the title from the ListTile which was pressed by the user?

I need the String value of the tapped title from the ListTile here is my code from the Listviewbuilder: Expanded( child: ListView.builder( itemCount: displayed_add_ingridients_to_meal.length, itemBuilder: (context, index) => ListTile( onTap: Ingridients_Selected_x(), title: Text(displayed_add_ingridients_to_meal[index].Ingridient_title!), ) ) ) IngridientsSelected_x is a function…

VIEW QUESTION
Back To Top
Search