Remove loading indicator

parent cab643da
...@@ -36,9 +36,6 @@ class ChatBloc { ...@@ -36,9 +36,6 @@ class ChatBloc {
List<Type> get ignoredEvents => ignoredEventsOf(room, isOverview: false); List<Type> get ignoredEvents => ignoredEventsOf(room, isOverview: false);
PublishSubject<bool> _isLoadingEventsSubj = PublishSubject<bool>();
Stream<bool> get isLoadingEvents => _isLoadingEventsSubj.stream.distinct();
final me = di.getLocalUser(); final me = di.getLocalUser();
int _maxPagesCount; int _maxPagesCount;
......
...@@ -176,12 +176,7 @@ class ChatPageState extends State<ChatPage> { ...@@ -176,12 +176,7 @@ class ChatPageState extends State<ChatPage> {
children: <Widget>[ children: <Widget>[
ErrorBanner(), ErrorBanner(),
Expanded( Expanded(
child: Stack( child: _buildBody(),
children: <Widget>[
_buildBody(),
_buildLoadingIndicator()
],
),
) )
], ],
) )
...@@ -283,24 +278,6 @@ class ChatPageState extends State<ChatPage> { ...@@ -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() { Widget _buildEventsList() {
return ListView.builder( return ListView.builder(
controller: scrollController, 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