Skip to content

Commit 0602b4f

Browse files
committed
wip msglist add MessageListPageState.narrow
1 parent e7b7e26 commit 0602b4f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/widgets/message_list.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ import 'theme.dart';
2828
///
2929
/// To obtain one of these, see [MessageListPage.ancestorOf].
3030
abstract class MessageListPageState {
31+
/// The narrow for this page's message list.
32+
Narrow get narrow;
33+
3134
/// The controller for this [MessageListPage]'s compose box,
3235
/// if this [MessageListPage] offers a compose box.
3336
ComposeBoxController? get composeBoxController;
@@ -64,6 +67,9 @@ class MessageListPage extends StatefulWidget {
6467
const _kUnsubscribedStreamRecipientHeaderColor = Color(0xfff5f5f5);
6568

6669
class _MessageListPageState extends State<MessageListPage> implements MessageListPageState {
70+
@override
71+
Narrow get narrow => widget.narrow;
72+
6773
@override
6874
ComposeBoxController<StatefulWidget>? get composeBoxController =>
6975
_composeBoxKey.currentState;

0 commit comments

Comments
 (0)