import 'package:flutter/material.dart'; class MessagePage extends StatefulWidget { const MessagePage({super.key}); @override State createState() => _MessagePageState(); } class _MessagePageState extends State with AutomaticKeepAliveClientMixin{ @override Widget build(BuildContext context) { super.build(context); return Container( color: Colors.white, ); } @override // TODO: implement wantKeepAlive bool get wantKeepAlive => true; }