mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-24 22:42:33 +01:00
fix: Share view
This commit is contained in:
parent
d9984da76d
commit
2bd00e6bb3
@ -1,3 +1,5 @@
|
|||||||
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:adaptive_page_layout/adaptive_page_layout.dart';
|
import 'package:adaptive_page_layout/adaptive_page_layout.dart';
|
||||||
import 'package:fluffychat/components/matrix.dart';
|
import 'package:fluffychat/components/matrix.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@ -6,6 +8,8 @@ import 'package:flutter_gen/gen_l10n/l10n.dart';
|
|||||||
import 'home_view_parts/chat_list.dart';
|
import 'home_view_parts/chat_list.dart';
|
||||||
|
|
||||||
class ShareView extends StatelessWidget {
|
class ShareView extends StatelessWidget {
|
||||||
|
final StreamController<int> _onAppBarButtonTap =
|
||||||
|
StreamController<int>.broadcast();
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
@ -18,8 +22,14 @@ class ShareView extends StatelessWidget {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
title: Text(L10n.of(context).share),
|
title: Text(L10n.of(context).share),
|
||||||
|
actions: [
|
||||||
|
IconButton(
|
||||||
|
icon: Icon(Icons.search_outlined),
|
||||||
|
onPressed: () => _onAppBarButtonTap.add(1),
|
||||||
),
|
),
|
||||||
body: ChatList(),
|
],
|
||||||
|
),
|
||||||
|
body: ChatList(onAppBarButtonTap: _onAppBarButtonTap.stream),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user