forked from firka/flutter
Refactor layers example (#83070)
This commit is contained in:
committed by
GitHub
parent
cce5e3aa9c
commit
1ca84e60b8
@@ -210,21 +210,14 @@ class IsolateExampleState extends State<StatefulWidget> with SingleTickerProvide
|
||||
String _label = 'Start';
|
||||
String _result = ' ';
|
||||
double _progress = 0.0;
|
||||
late AnimationController _animation;
|
||||
late CalculationManager _calculationManager;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_animation = AnimationController(
|
||||
duration: const Duration(milliseconds: 3600),
|
||||
vsync: this,
|
||||
)..repeat();
|
||||
_calculationManager = CalculationManager(
|
||||
onProgressListener: _handleProgressUpdate,
|
||||
onResultListener: _handleResult,
|
||||
);
|
||||
}
|
||||
late final AnimationController _animation = AnimationController(
|
||||
duration: const Duration(milliseconds: 3600),
|
||||
vsync: this,
|
||||
)..repeat();
|
||||
late final CalculationManager _calculationManager = CalculationManager(
|
||||
onProgressListener: _handleProgressUpdate,
|
||||
onResultListener: _handleResult,
|
||||
);
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
|
||||
Reference in New Issue
Block a user