Commit 5496a7ab authored by Wilko Manger's avatar Wilko Manger

Remove loading indicator

parent cab643da
......@@ -36,9 +36,6 @@ class ChatBloc {
List<Type> get ignoredEvents => ignoredEventsOf(room, isOverview: false);
PublishSubject<bool> _isLoadingEventsSubj = PublishSubject<bool>();
Stream<bool> get isLoadingEvents => _isLoadingEventsSubj.stream.distinct();
final me = di.getLocalUser();
int _maxPagesCount;
......
......@@ -176,12 +176,7 @@ class ChatPageState extends State<ChatPage> {
children: <Widget>[
ErrorBanner(),
Expanded(
child: Stack(
children: <Widget>[
_buildBody(),
_buildLoadingIndicator()
],
),
child: _buildBody(),
)
],
)
......@@ -283,24 +278,6 @@ class ChatPageState extends State<ChatPage> {
}
Widget _buildLoadingIndicator() {
return StreamBuilder<bool>(
stream: bloc.isLoadingEvents,
builder: (BuildContext context, AsyncSnapshot<bool> snapshot) {
final isLoading = snapshot.data ?? false;
return AnimatedOpacity(
opacity: isLoading ? 1.0 : 0.0,
duration: Duration(milliseconds: 250),
child: Container(
alignment: Alignment.topCenter,
child: RefreshProgressIndicator(),
)
);
}
);
}
Widget _buildEventsList() {
return ListView.builder(
controller: scrollController,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment