dudv_base

flutter pub publish
Expanded(
              child: GroupedListView<CubeMessage, String>(
                elements: _presenter.listMsg,
                padding: EdgeInsets.symmetric(vertical: 15, horizontal: 10),
                onRefresh: _presenter.onRefresh,
                reverse: true,
                order: GroupedListOrder.DESC,
                physics: AlwaysScrollableScrollPhysics(),
                controller: _presenter.controller,
                groupBy: (CubeMessage element) => DateFormat.yMMMd().format(
                    DateTime.fromMillisecondsSinceEpoch(
                        element.dateSent * 1000)),
                groupHeaderBuilder: _presenter.groupHeaderBuilder,
                itemBuilder: _presenter.itemBuilder,
              ),
            ),


  @override
  Widget itemBuild(BuildContext context, int index) {
    print('_autoMsg $_autoMsg');
    if (index < list.length) {
      CubeMessage message = list[index];
      return ItemMessageView(
        message: message,
        cubeUser: ccUseridInt,
        cubeDialog: cubeDialog,
        choiceAction: choiceAction,
        markAsReadIfNeed: markAsReadIfNeed,
      );
    }
    return Visibility(
      visible: _apiClient.hashNextPage,
      child: loadingView(),
    );
  }

  Widget groupHeaderBuilder(CubeMessage element) {
    return ItemTimeView(
      model: element,
    );
  }

Libraries

action_noti_view
api_loadmore
api_presenter
appbar_search_view
btn_view
config
dudv_base
form_input_view
form_presenter
grouped_list
guide_permission_view
lifecycle_event_handler
lin_view
line_or_line_view
list_presenter
loading_presenter
loading_view
logger_presenter
no_data_view
presenter
styles
title_require_view
utils