|
|
|
@ -211,6 +211,14 @@ class _ChatListState extends State<ChatList> {
|
|
|
|
|
searchMode = false;
|
|
|
|
|
}),
|
|
|
|
|
)
|
|
|
|
|
: selectMode == SelectMode.share
|
|
|
|
|
? IconButton(
|
|
|
|
|
icon: Icon(Icons.close),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Matrix.of(context).shareContent = null;
|
|
|
|
|
setState(() => selectMode = SelectMode.normal);
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
automaticallyImplyLeading: false,
|
|
|
|
|
actions: searchMode
|
|
|
|
@ -242,14 +250,6 @@ class _ChatListState extends State<ChatList> {
|
|
|
|
|
icon: Icon(Icons.search),
|
|
|
|
|
onPressed: () => setState(() => searchMode = true),
|
|
|
|
|
),
|
|
|
|
|
if (selectMode == SelectMode.share)
|
|
|
|
|
IconButton(
|
|
|
|
|
icon: Icon(Icons.close),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Matrix.of(context).shareContent = null;
|
|
|
|
|
setState(() => selectMode = SelectMode.normal);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
if (selectMode == SelectMode.normal)
|
|
|
|
|
PopupMenuButton(
|
|
|
|
|
onSelected: (String choice) {
|
|
|
|
@ -288,7 +288,9 @@ class _ChatListState extends State<ChatList> {
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
floatingActionButton: SpeedDial(
|
|
|
|
|
floatingActionButton: selectMode == SelectMode.share
|
|
|
|
|
? null
|
|
|
|
|
: SpeedDial(
|
|
|
|
|
child: Icon(Icons.add),
|
|
|
|
|
overlayColor: blackWhiteColor(context),
|
|
|
|
|
foregroundColor: Colors.white,
|
|
|
|
|