diff --git a/lib/ui/widgets/tablet_mode/conversations/conversation_window.dart b/lib/ui/widgets/tablet_mode/conversations/conversation_window.dart index eb34c82..0b8dc5d 100644 --- a/lib/ui/widgets/tablet_mode/conversations/conversation_window.dart +++ b/lib/ui/widgets/tablet_mode/conversations/conversation_window.dart @@ -76,7 +76,7 @@ class _ConversationWindowState extends SafeState { return ConversationWindowContainer( title: Text(tr("Error")), onClose: widget.onClose, - onToggleCollpase: _toggleVisibility, + onToggleCollapse: _toggleVisibility, isCollapsed: _collapsed, body: buildErrorCard(tr("Could not load conversation information!"), actions: [ @@ -93,7 +93,7 @@ class _ConversationWindowState extends SafeState { return ConversationWindowContainer( title: Text(tr("Loading...")), onClose: widget.onClose, - onToggleCollpase: _toggleVisibility, + onToggleCollapse: _toggleVisibility, isCollapsed: _collapsed, body: buildCenteredProgressBar(), ); @@ -101,7 +101,7 @@ class _ConversationWindowState extends SafeState { return ConversationWindowContainer( title: Text(_convTitle), onClose: widget.onClose, - onToggleCollpase: _toggleVisibility, + onToggleCollapse: _toggleVisibility, isCollapsed: _collapsed, body: ConversationScreen( key: _convKey, diff --git a/lib/ui/widgets/tablet_mode/conversations/conversation_window_container.dart b/lib/ui/widgets/tablet_mode/conversations/conversation_window_container.dart index efad923..deb269d 100644 --- a/lib/ui/widgets/tablet_mode/conversations/conversation_window_container.dart +++ b/lib/ui/widgets/tablet_mode/conversations/conversation_window_container.dart @@ -9,7 +9,7 @@ import 'package:flutter/material.dart'; class ConversationWindowContainer extends StatelessWidget { final Widget title; final void Function() onClose; - final void Function() onToggleCollpase; + final void Function() onToggleCollapse; final bool isCollapsed; final Widget body; @@ -18,12 +18,12 @@ class ConversationWindowContainer extends StatelessWidget { @required this.title, @required this.onClose, @required this.body, - @required this.onToggleCollpase, + @required this.onToggleCollapse, @required this.isCollapsed, }) : assert(title != null), assert(onClose != null), assert(body != null), - assert(onToggleCollpase != null), + assert(onToggleCollapse != null), assert(isCollapsed != null), super(key: key); @@ -35,7 +35,7 @@ class ConversationWindowContainer extends StatelessWidget { height: !isCollapsed ? 400 : 40, child: Scaffold( appBar: AppBar( - title: GestureDetector(child: title, onTap: onToggleCollpase), + title: GestureDetector(child: title, onTap: onToggleCollapse), actions: [ IconButton(icon: Icon(Icons.close), onPressed: onClose), ],