dudv_base 1.3.0+3 copy "dudv_base: ^1.3.0+3" to clipboard
dudv_base: ^1.3.0+3 copied to clipboard

Model–view–presenter (MVP) is a derivation of the model–view–controller (MVC) architectural pattern, and is used mostly for building user interfaces.

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,
    );
  }

8
likes
130
points
52
downloads

Publisher

unverified uploader

Weekly Downloads

Model–view–presenter (MVP) is a derivation of the model–view–controller (MVC) architectural pattern, and is used mostly for building user interfaces.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, fluttertoast, logger, permission_handler

More

Packages that depend on dudv_base