* chore: Add ImageHeaderTheme and ImageHeaderThemeData to stream_chat_theme.dart This commit adds the following classes to `stream_chat_theme.dart`: 1. `ImageHeaderTheme`, an `InheritedTheme` widget that can wrap other widgets and provide that sub-tree with an `ImageHeaderThemeData` 2. `ImageHeaderThemeData`, a class that allows for the customization of `ImageHeader` widgets * Make ImageHeaderThemeData constructor const * test: initial ImageHeaderThemeData tests Tests the copyWith, ==, and hashcode functions * test: add tests for default ImageHeaderThemeData values Tests the default values of ImageHeaderThemeData that gets built in a StreamChatThemeData against control values. * Update test name and add comments describing control * fix: use ImageHeaderTheme.of(context) instead of StreamChatTheme.of(context) This ensures that ImageHeader will always look for the closest ImageHeaderThemeData in the widget tree. * test: add dark theme default values test * run dartfmt on test file * test: lerping between ImageHeaderThemeData Added tests that lerp from one ImageHeaderThemeData to another (light to dark and dark to light) * test: merging ImageHeaderThemeData Added tests that merge light and dark ImageHeaderThemeData together (light + dark = dark, dark + light = light) * test: add a half-lerp test Added a test that lerps halway between light and dark ImageHeaderThemeData * chore: Add ImageFooterTheme and ImageFooterThemeData to stream_chat_theme.dart This commit adds the following classes to `stream_chat_theme.dart`: 1. `ImageFooterTheme`, an `InheritedTheme` widget that can wrap other widgets and provide that sub-tree with an `ImageFooterThemeData` 2. `ImageFooterThemeData`, a class that allows for the customization of `ImageFooter` widget * chore: apply ImageFooterThemeData to image_footer.dart * fix: make ImageFooterThemeData constructor const * test: add tests for ImageFooterThemeData * add a missing trailing comma * chore: rename ImageHeader & ImageFooter to GalleryHeader and GalleryFooter The respective theme classes and tests have also been renamed * Run dartfmt on test * test: fix failing tests due to renaming
44 lines
1.5 KiB
Dart
44 lines
1.5 KiB
Dart
export 'package:stream_chat_flutter_core/stream_chat_flutter_core.dart';
|
|
|
|
export 'src/attachment/attachment.dart';
|
|
export 'src/back_button.dart';
|
|
export 'src/channel_header.dart';
|
|
export 'src/channel_image.dart';
|
|
export 'src/channel_list_header.dart';
|
|
export 'src/channel_list_view.dart';
|
|
export 'src/channel_name.dart';
|
|
export 'src/channel_preview.dart';
|
|
export 'src/connection_status_builder.dart';
|
|
export 'src/date_divider.dart';
|
|
export 'src/deleted_message.dart';
|
|
export 'src/full_screen_media.dart';
|
|
export 'src/gallery_footer.dart';
|
|
export 'src/gallery_header.dart';
|
|
export 'src/info_tile.dart';
|
|
export 'src/mention_tile.dart';
|
|
export 'src/message_action.dart';
|
|
export 'src/message_input.dart';
|
|
export 'src/message_list_view.dart';
|
|
export 'src/message_search_item.dart';
|
|
export 'src/message_search_list_view.dart';
|
|
export 'src/message_text.dart';
|
|
export 'src/message_widget.dart';
|
|
export 'src/option_list_tile.dart';
|
|
export 'src/reaction_icon.dart';
|
|
export 'src/reaction_picker.dart';
|
|
export 'src/sending_indicator.dart';
|
|
export 'src/stream_chat.dart';
|
|
export 'src/stream_chat_theme.dart';
|
|
export 'src/stream_neumorphic_button.dart';
|
|
export 'src/stream_svg_icon.dart';
|
|
export 'src/system_message.dart';
|
|
export 'src/thread_header.dart';
|
|
export 'src/typing_indicator.dart';
|
|
export 'src/unread_indicator.dart';
|
|
export 'src/user_avatar.dart';
|
|
export 'src/user_item.dart';
|
|
export 'src/user_item.dart';
|
|
export 'src/user_list_view.dart';
|
|
export 'src/user_list_view.dart';
|
|
export 'src/utils.dart';
|