Comments (6)
@ashutosh840 What exactly is the problem?
Can you tell me how the list looks with your implementation and what you would expect instead?
from grouped_list.
It should be like this
**thursday**
Ashutosh
keshav
**monday**
Aniket
**saturday**
Eishu
from grouped_list.
There would be no stars it is just to say that it is the header
from grouped_list.
@ashutosh840 okay I unterstand.
After a look at your code it should be displayd exactly like this.
How is it at the moment? Can you post a screenshot or any information to get the problem?
from grouped_list.
It is showing some error. Please try it on your computer you will see it.
from grouped_list.
After rereading your code I notice some mistakes, that do not have anything do to with this plugin.
In your constructor you are not assigning the values to the class attributes but you assign class attributes to the variables.
In case of this:
record(String Name, int DayofBirth){
Name=this.Name;
DayofBirth=this.DayofBirth;
}
It need to be like this:
record(String Name, int DayofBirth){
this.Name=Name;
this.DayofBirth=DayofBirth;
}
In dart you you can just write the following, it is the same as the above:
record(this.Name, this.DayofBirth);
With this change your code should run as expected.
Some further recommendations which do not affect the execution of your code:
Variables names should always be in camel case, so name
instead of Name
and dayOfBirth
instead DayofBirth
.
Class names should always start with a capital letter, so Record
instead of record
.
Here is a good articel from the offical website which might help you:
https://dart.dev/guides/language/effective-dart
https://dart.dev/guides/language/language-tour
from grouped_list.
Related Issues (20)
- Is there a way to get the index of an item inside the group? HOT 2
- A GlobalKey can only be specified on one widget at a time in the widget tree. HOT 1
- Is there a way to draw a widget at the end of the last item? HOT 1
- Can separator be set to null? Because after setting itemExtent, the height doubles
- Ui Freezing when too many items are loaded in the list-LazyLoading feature request
- ItemComparator function doesn't work if you set groupComparator function HOT 1
- Wrong sticky header on first display of scrolled list HOT 3
- Support for container group HOT 1
- Feature Request: Custom Header Location HOT 1
- Bad state: Cannot add event after closing
- Element Position HOT 1
- Get first and / or last index of each group
- useStickyGroupSeparators
- Implicit animations for items when data source changes HOT 1
- index for group headers and separators HOT 1
- Highlight current group separator HOT 2
- Footer widget doesn't work as intended HOT 2
- Hide Separator if only one group HOT 1
- "primary" parameter doesn't work
- Sticky header not updated on web HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grouped_list.