veilidchat/lib/layout/home/home_account_ready/chat_only.dart

41 lines
940 B
Dart
Raw Normal View History

2023-08-08 02:03:26 -04:00
import 'package:flutter/material.dart';
2024-01-26 21:02:11 -05:00
import '../../../chat/chat.dart';
import '../../../tools/tools.dart';
2023-08-08 02:03:26 -04:00
2023-12-26 20:26:54 -05:00
class ChatOnlyPage extends StatefulWidget {
2023-08-08 02:03:26 -04:00
const ChatOnlyPage({super.key});
@override
ChatOnlyPageState createState() => ChatOnlyPageState();
}
2024-01-09 20:58:27 -05:00
class ChatOnlyPageState extends State<ChatOnlyPage>
2023-08-08 02:03:26 -04:00
with TickerProviderStateMixin {
final _unfocusNode = FocusNode();
@override
void initState() {
super.initState();
WidgetsBinding.instance.addPostFrameCallback((_) async {
setState(() {});
2024-01-09 20:58:27 -05:00
await changeWindowSetup(
2023-08-08 02:03:26 -04:00
TitleBarStyle.normal, OrientationCapability.normal);
});
}
@override
void dispose() {
_unfocusNode.dispose();
super.dispose();
}
@override
2024-01-09 20:58:27 -05:00
Widget build(BuildContext context) => SafeArea(
child: GestureDetector(
onTap: () => FocusScope.of(context).requestFocus(_unfocusNode),
child: buildChatComponent(),
));
2023-08-08 02:03:26 -04:00
}