listview

create an horizontal List View inside a child of Horizontal ListView

橙三吉。 提交于 2020-06-01 04:04:27
问题 I am new in flutter and I want to show an horizontal list when i click in a child of an Horizontal ListView. I Tried with this code but i dont knpw how to add the child ListView when I taped in InkWell there is another way to this, class Category extends StatelessWidget { final String image_location; final String image_caption; Category({this.image_location, this.image_caption}); @override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.all(2.0), child: InkWell(

Binding to first N items in an ObservableCollection on a ListView

不羁岁月 提交于 2020-05-31 05:54:53
问题 I have an ObservableCollection<T> in my application that can hold numerous items. Specifically, this is summary information from a potentially extensive logger. What I'd like to do is bind strictly the top 3 items of this collection to WPF ListView . Is there XAML syntax, or a simple enough way to create a secondary property in my VM, to always return the top 3 items in the collection as well as update any changes to the collection as a normal ObservableCollection<T> would if you were

Flutter - ListView.builder: Initial scroll position

爱⌒轻易说出口 提交于 2020-05-29 17:13:49
问题 I want to setup the initial scroll position of a ListView.builder, I want the list to start at the bottom 0.0 If I setup reverse on the listView of course I get the initial scroll position to be the desired one, but what I need is to have the last children on the bottom, is a chat app. This is the list builder, MessageItem() is the chat message ListView.builder( shrinkWrap: true, controller: _scrollController, itemCount: snapshot.data.documents.length, padding: EdgeInsets.all(10.0),

Flutter - ListView.builder: Initial scroll position

南楼画角 提交于 2020-05-29 17:13:02
问题 I want to setup the initial scroll position of a ListView.builder, I want the list to start at the bottom 0.0 If I setup reverse on the listView of course I get the initial scroll position to be the desired one, but what I need is to have the last children on the bottom, is a chat app. This is the list builder, MessageItem() is the chat message ListView.builder( shrinkWrap: true, controller: _scrollController, itemCount: snapshot.data.documents.length, padding: EdgeInsets.all(10.0),

Flutter: keyboard disappears immediately when editing my text fields

≡放荡痞女 提交于 2020-05-29 10:49:11
问题 Sign up form with flutter I'm trying to build an app front end with flutter and it's my first time so I faced some bugs like this one: there is no way to edit my textformfield because I putted my form elements in a listview ! when keyboard appears to enter some text to the field it disappears in a second ! I need an immediat solution please :( import 'package:flutter/material.dart'; import'package:dubai274_app/mobile_verif.dart'; import 'EnsureVisible.dart'; class SignUp extends

Add a checkbox in a listview (C#)

折月煮酒 提交于 2020-05-29 08:46:23
问题 I'd like to show a listview in a C# application where every row represents a product so the property "view" is set on "detail". One column (the last one) should be a checkbox because it represents if the product is discountinued. With the checkboxes property set to true, a checkbox appear in the first column so it doesn't work for my application. How can add the checkbox to the last column? Thank you 回答1: The Checkboxes are always associated with the first Column. However you change re-order

Add a checkbox in a listview (C#)

拜拜、爱过 提交于 2020-05-29 08:45:35
问题 I'd like to show a listview in a C# application where every row represents a product so the property "view" is set on "detail". One column (the last one) should be a checkbox because it represents if the product is discountinued. With the checkboxes property set to true, a checkbox appear in the first column so it doesn't work for my application. How can add the checkbox to the last column? Thank you 回答1: The Checkboxes are always associated with the first Column. However you change re-order

Flutter: Specify ListTile height

瘦欲@ 提交于 2020-05-28 13:44:10
问题 In this code, I am trying to make a list of buttons or tile "as buttons does not work well for me " in the very top of the page. Thus, when one is clicked it returns a value in the rest of the page. The issue is: The tile here toke around more than half of the page which makes it looks inconsistent. I want to limit the height of the tile, I have tried putting them in a row and a container and it doesn't work. Any HELP will be appreciated. the result after running the code is: this is the

How to setup Listview to strikethrough item after click?

我怕爱的太早我们不能终老 提交于 2020-05-26 09:37:10
问题 I have a list of strings that I setup on the listview in on create: //set Adapter lvAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, chosenArray); //add to listview lw.setAdapter(lvAdapter); My Question: I want to setup the list so that once an item is clicked, it gets a strike through. However, I am new to android and haven't done that before. What I've tried unsuccessfully: Based on answer I tried this method, however it would cross off items that were not

How to add images to a ListView

♀尐吖头ヾ 提交于 2020-05-24 05:08:32
问题 I've been reading documents for the last 8 hours and found nothing that could help me. Vaguely yes, but no code is working becuase it keeps saying "image url not found" and throws the exception. However I have other projects and never had this issue. So, there's one class that contains months like so: public enum Month{JAN(1, "img.png",...DEC(12, "img.png"); private final int monthValue; private final String imgName; private Month(int monthValue, String imgName){ this.monthValue = monthValue;