skip to Main Content

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

Flutter: How can I position a TextButton at the end of a Listview builder instead of it being anchored at bottom of column?

class _AppointmentListViewState extends State<AppointmentListView> { int numOfInitialAppointmentsLoaded = 2; int numOfAppointmentsToFetch = 2; @override Widget build(BuildContext context) { List appointmentData = [ ...widget.appointmentList.map( (appointmentData) => AppointmentModal(appointment: appointmentData)) ]; int totalNumberOfAppointments = appointmentData.length; void loadMoreAppointments() { if (numOfInitialAppointmentsLoaded >= totalNumberOfAppointments) {…

VIEW QUESTION

Flutter – Make certain widget scrollable

I have a Column widget in my page. There are two widget in Column widget, one is ListTie, another is ListView. Widget _showBody(BuildContext context) { return Column(children: [ ListTile( horizontalTitleGap: 0, tileColor: Colors.white, onTap: () {}, leading: const Icon( Icons.smart_button,…

VIEW QUESTION
Back To Top
Search