mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-09 03:27:39 +08:00
fix
This commit is contained in:
@@ -23,7 +23,7 @@ func (s *Server) GetAllActivities(c *gin.Context) (interface{}, error) {
|
|||||||
History: h,
|
History: h,
|
||||||
}
|
}
|
||||||
for id, task := range s.tasks {
|
for id, task := range s.tasks {
|
||||||
if h.ID == id {
|
if h.ID == id && task.Exists() {
|
||||||
a.Progress = task.Progress()
|
a.Progress = task.Progress()
|
||||||
}
|
}
|
||||||
if h.ID == id && task.Processing {
|
if h.ID == id && task.Processing {
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class MyProgressIndicator extends StatelessWidget {
|
class MyProgressIndicator extends StatelessWidget {
|
||||||
double size;
|
final double size;
|
||||||
Color? color;
|
final Color? color;
|
||||||
double? value;
|
final double? value;
|
||||||
|
|
||||||
MyProgressIndicator({super.key, this.size = 30, this.color, this.value});
|
const MyProgressIndicator({super.key, this.size = 30, this.color, this.value});
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Center(
|
return Center(
|
||||||
|
|||||||
Reference in New Issue
Block a user