Posts

Showing posts from April, 2024

Flutter Tag View List (Simple Use )

  Add plugin  - pubspec.yaml >     flutter_tags_x : ^1.1.0 ------------------------------------------------------------------- List<String> tagList=['A','AB','ABC','ABCD']; Container ( alignment: Alignment . centerLeft , padding: EdgeInsets . only (left: 15 , top: 10 ), child: Tags ( //key:_tagStateKey, itemCount: tagList !. length , // required itemBuilder: ( int index){ final item = tagList ![index]; return ItemTags ( key: Key (index.toString()), index: index, // required title: item . title .toString(), //active: tagList ![index]. isActive == true ? true : false , //customData: dataBussiness.subcategories!.customData, activeColor: AppColors . logoColor_h , pressEnabled: false , textStyle: TextStyle ( fontSize: 16 , ), // OR null, // OR null, onPressed: (item) => print(item), onLongPressed: (item) => print(i...