fix(ui, core): use CircularProgressIndicator.adaptive instead of material indicator.
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -200,7 +200,7 @@ class _FileTypeImage extends StatelessWidget {
|
|||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
child: CircularProgressIndicator(),
|
child: CircularProgressIndicator.adaptive(),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -210,7 +210,7 @@ class _FileTypeImage extends StatelessWidget {
|
|||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
child: CircularProgressIndicator(),
|
child: CircularProgressIndicator.adaptive(),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ class StreamGiphyAttachment extends StreamAttachmentWidget {
|
|||||||
width: constraints?.maxHeight,
|
width: constraints?.maxHeight,
|
||||||
height: constraints?.maxWidth,
|
height: constraints?.maxWidth,
|
||||||
child: const Center(
|
child: const Center(
|
||||||
child: CircularProgressIndicator(),
|
child: CircularProgressIndicator.adaptive(),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
imageUrl: imageUrl,
|
imageUrl: imageUrl,
|
||||||
|
|||||||
+4
-2
@@ -345,9 +345,11 @@ class AttachmentActionsModal extends StatelessWidget {
|
|||||||
child: Stack(
|
child: Stack(
|
||||||
fit: StackFit.expand,
|
fit: StackFit.expand,
|
||||||
children: [
|
children: [
|
||||||
CircularProgressIndicator(
|
CircularProgressIndicator.adaptive(
|
||||||
strokeWidth: 8,
|
strokeWidth: 8,
|
||||||
color: theme.colorTheme.accentPrimary,
|
valueColor: AlwaysStoppedAnimation<Color>(
|
||||||
|
theme.colorTheme.accentPrimary,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Center(
|
Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ class _ConnectingTitleState extends StatelessWidget {
|
|||||||
height: 16,
|
height: 16,
|
||||||
width: 16,
|
width: 16,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: CircularProgressIndicator(),
|
child: CircularProgressIndicator.adaptive(),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 10),
|
const SizedBox(width: 10),
|
||||||
|
|||||||
@@ -244,7 +244,7 @@ class _ConnectingTitleState extends StatelessWidget {
|
|||||||
height: 16,
|
height: 16,
|
||||||
width: 16,
|
width: 16,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: CircularProgressIndicator(),
|
child: CircularProgressIndicator.adaptive(),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 10),
|
const SizedBox(width: 10),
|
||||||
|
|||||||
@@ -337,7 +337,7 @@ class _FullScreenMediaState extends State<StreamFullScreenMedia> {
|
|||||||
final controller = videoPackages[attachment.id]!;
|
final controller = videoPackages[attachment.id]!;
|
||||||
if (!controller.initialized) {
|
if (!controller.initialized) {
|
||||||
return const Center(
|
return const Center(
|
||||||
child: CircularProgressIndicator(),
|
child: CircularProgressIndicator.adaptive(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return InkWell(
|
return InkWell(
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ class StreamUploadProgressIndicator extends StatelessWidget {
|
|||||||
SizedBox(
|
SizedBox(
|
||||||
height: 16,
|
height: 16,
|
||||||
width: 16,
|
width: 16,
|
||||||
child: CircularProgressIndicator(
|
child: CircularProgressIndicator.adaptive(
|
||||||
strokeWidth: 3,
|
strokeWidth: 3,
|
||||||
valueColor: AlwaysStoppedAnimation(progressIndicatorColor),
|
valueColor: AlwaysStoppedAnimation(progressIndicatorColor),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -303,7 +303,7 @@ class _ParseAttachments extends StatelessWidget {
|
|||||||
width: size.width,
|
width: size.width,
|
||||||
height: size.height,
|
height: size.height,
|
||||||
child: const Center(
|
child: const Center(
|
||||||
child: CircularProgressIndicator(),
|
child: CircularProgressIndicator.adaptive(),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@@ -394,7 +394,7 @@ class _VideoAttachmentThumbnailState extends State<_VideoAttachmentThumbnail> {
|
|||||||
width: 32,
|
width: 32,
|
||||||
child: _controller.value.isInitialized
|
child: _controller.value.isInitialized
|
||||||
? VideoPlayer(_controller)
|
? VideoPlayer(_controller)
|
||||||
: const CircularProgressIndicator(),
|
: const CircularProgressIndicator.adaptive(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ class LoadingIndicator extends StatelessWidget {
|
|||||||
const Center(
|
const Center(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.all(8),
|
padding: EdgeInsets.all(8),
|
||||||
child: CircularProgressIndicator(),
|
child: CircularProgressIndicator.adaptive(),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -432,7 +432,7 @@ class _StreamMessageListViewState extends State<StreamMessageListView> {
|
|||||||
messageFilter: widget.messageFilter,
|
messageFilter: widget.messageFilter,
|
||||||
loadingBuilder: widget.loadingBuilder ??
|
loadingBuilder: widget.loadingBuilder ??
|
||||||
(context) => const Center(
|
(context) => const Center(
|
||||||
child: CircularProgressIndicator(),
|
child: CircularProgressIndicator.adaptive(),
|
||||||
),
|
),
|
||||||
emptyBuilder: widget.emptyBuilder ??
|
emptyBuilder: widget.emptyBuilder ??
|
||||||
(context) => Center(
|
(context) => Center(
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ bool Function(Message) defaultMessageFilter(String currentUserId) =>
|
|||||||
/// },
|
/// },
|
||||||
/// loadingBuilder: (context) {
|
/// loadingBuilder: (context) {
|
||||||
/// return Center(
|
/// return Center(
|
||||||
/// child: CircularProgressIndicator(),
|
/// child: CircularProgressIndicator.adaptive(),
|
||||||
/// );
|
/// );
|
||||||
/// },
|
/// },
|
||||||
/// messageListBuilder: (context, list) {
|
/// messageListBuilder: (context, list) {
|
||||||
|
|||||||
@@ -445,7 +445,7 @@ class StreamChannelState extends State<StreamChannel> {
|
|||||||
final dataLoaded = snapshot.data?.every((it) => it) == true;
|
final dataLoaded = snapshot.data?.every((it) => it) == true;
|
||||||
if (widget.showLoading && !dataLoaded) {
|
if (widget.showLoading && !dataLoaded) {
|
||||||
return const Center(
|
return const Center(
|
||||||
child: CircularProgressIndicator(),
|
child: CircularProgressIndicator.adaptive(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return widget.child;
|
return widget.child;
|
||||||
|
|||||||
Reference in New Issue
Block a user