@@ -133,7 +133,7 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
133
133
/// The interface for the state of a [MessageListPage] .
134
134
///
135
135
/// To obtain one of these, see [MessageListPage.ancestorOf] .
136
- abstract class MessageListPageState {
136
+ abstract class MessageListPageState extends State < MessageListPage > {
137
137
/// The narrow for this page's message list.
138
138
Narrow get narrow;
139
139
@@ -171,11 +171,20 @@ class MessageListPage extends StatefulWidget {
171
171
this .initAnchorMessageId,
172
172
});
173
173
174
- static AccountRoute <void > buildRoute ({int ? accountId, BuildContext ? context,
175
- required Narrow narrow, int ? initAnchorMessageId}) {
176
- return MaterialAccountWidgetRoute (accountId: accountId, context: context,
174
+ static AccountRoute <void > buildRoute ({
175
+ GlobalKey <MessageListPageState >? key,
176
+ int ? accountId,
177
+ BuildContext ? context,
178
+ required Narrow narrow,
179
+ int ? initAnchorMessageId,
180
+ }) {
181
+ return MaterialAccountWidgetRoute (
182
+ accountId: accountId,
183
+ context: context,
177
184
page: MessageListPage (
178
- initNarrow: narrow, initAnchorMessageId: initAnchorMessageId));
185
+ key: key,
186
+ initNarrow: narrow,
187
+ initAnchorMessageId: initAnchorMessageId));
179
188
}
180
189
181
190
/// The "revealed" state of a message from a muted sender,
0 commit comments