list_twolevel 0.0.5 copy "list_twolevel: ^0.0.5" to clipboard
list_twolevel: ^0.0.5 copied to clipboard

Two type listbuilder easy to use, fill with Map<> Obj.

use #

AListBuilder

  import 'package:list_twolevel/list_A.dart';
  
  List<Map<String, String>> listALevelObj = [
    {'title': 'Vue', 'image': 'assets/Vue.png'},
    {'title': 'Web', 'image': 'assets/Web.png'},
    {'title': 'Flutter', 'image': 'assets/Flutter.png'},
    {'title': 'UnrealEngine', 'image': 'assets/UnrealEngine.png'}
  ];
  listA (){
    return AListBuilder(
      levelObj: listALevelObj,
      backgroundColor: const Color(0xFF2E2E48),
      onPressed: (selectedCategory) {
        debugPrint('click $selectedCategory ');
        setState(() {
          
        });
      },
    );
  }

OneLevel


BListBuilder

 import 'package:list_twolevel/list_B.dart';

 List<Map<String, String>> listBLevelObj = [
    {'title':'title1'},
    {'title':'title2'},
    {'title':'title3'},
    {'title':'title4'},
    {'title':'title5'},
  ];
  listB (){
    return BListBuilder(
      levelObj: listBLevelObj,
      itemHeight: 50,
      backgroundColor: const Color(0xFF2E2E48),
      onPressed: (selectedTitle) {
        debugPrint('click $selectedTitle ');
        setState(() {
          
        });
      },
    );
  }

TwoLevel

https://pub.dev/packages/list_twolevel

use in my blog #

click to see:shAdowPlusing

code source #

Github:shAdow-XJY/list_twolevel: a two level list builder --- flutter component. (github.com)

Gitee:list_twolevel: a two level list builder --- flutter component. (gitee.com)

1
likes
100
pub points
0%
popularity

Publisher

unverified uploader

Two type listbuilder easy to use, fill with Map<> Obj.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on list_twolevel