Notification ListView

logo


Features

This package is for Hyundai AutoEver internship assignments.

This list view is optimized for the notification type used in the Hyundai AutoEver project.

Usage

Scaffold(
    body:  NotificationListView(
            hasHeader: true,
            onTapSearch: () {}, //nullable
            onTapAll: () {},
            onTapAlert: () {},
            onTapNormal: () {},
            onTapChatting: () {},
            selectedType: null, // for header button color
            isSearching: false, // for button color
            itemCount: 7,
            itemBuilder: (context, int i) => NotiListViewTile(
                isFirst: (i == 0) ? true : false, // for top margin
                isNew: true, // for badge
                title: "title",
                content: "content",
                notiTileType: notiTileType.normal,
                ),
            ),
    );

Showcase

showcase1

Additional information

NotificationListView is the same as listview.builder except for the header related properties.