Added loading indicator while file picking
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:jiffy/jiffy.dart';
|
||||
import 'package:loader_overlay/loader_overlay.dart';
|
||||
import 'package:marianum_mobile/api/marianumcloud/talk/chat/getChatResponse.dart';
|
||||
import 'package:marianum_mobile/api/marianumcloud/talk/room/getRoomResponse.dart';
|
||||
import 'package:marianum_mobile/data/chatList/chatProps.dart';
|
||||
@ -92,17 +93,19 @@ class _ChatViewState extends State<ChatView> {
|
||||
colorFilter: ColorFilter.linearToSrgbGamma()
|
||||
)
|
||||
),
|
||||
child: data.primaryLoading() ? const Center(child: CircularProgressIndicator()) : Column(
|
||||
children: [
|
||||
Expanded(
|
||||
child: ListView(
|
||||
reverse: true,
|
||||
controller: _listController,
|
||||
children: messages.reversed.toList(),
|
||||
child: LoaderOverlay(
|
||||
child: data.primaryLoading() ? const Center(child: CircularProgressIndicator()) : Column(
|
||||
children: [
|
||||
Expanded(
|
||||
child: ListView(
|
||||
reverse: true,
|
||||
controller: _listController,
|
||||
children: messages.reversed.toList(),
|
||||
),
|
||||
),
|
||||
),
|
||||
ChatTextfield(widget.room.token),
|
||||
],
|
||||
ChatTextfield(widget.room.token),
|
||||
],
|
||||
),
|
||||
)
|
||||
),
|
||||
);
|
||||
|
Reference in New Issue
Block a user