mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix some info-level warnings from Dart analyzer
TBR=eseidel@google.com Review URL: https://codereview.chromium.org/1226103013 .
This commit is contained in:
parent
63318886a0
commit
cf9d24b75d
@ -31,7 +31,7 @@ class HomeFragment extends StatefulComponent {
|
||||
|
||||
FitnessMode _fitnessMode = FitnessMode.measure;
|
||||
|
||||
void initState {
|
||||
void initState() {
|
||||
// if (debug)
|
||||
// new Timer(new Duration(seconds: 1), dumpState);
|
||||
_drawerController = new DrawerController(_handleDrawerStatusChanged);
|
||||
|
||||
@ -76,7 +76,8 @@ class ParticleSystem extends Node {
|
||||
List<_Particle> _particles;
|
||||
|
||||
double _emitCounter;
|
||||
double _elapsedTime;
|
||||
// Not yet used:
|
||||
// double _elapsedTime;
|
||||
int _numEmittedParticles = 0;
|
||||
|
||||
math.Random _rand;
|
||||
@ -117,7 +118,7 @@ class ParticleSystem extends Node {
|
||||
_particles = new List<_Particle>();
|
||||
_rand = new math.Random();
|
||||
_emitCounter = 0.0;
|
||||
_elapsedTime = 0.0;
|
||||
// _elapsedTime = 0.0;
|
||||
if (gravity == null) gravity = new Vector2.zero();
|
||||
if (colorSequence == null) colorSequence = new ColorSequence.fromStartAndEndColor(new Color(0xffffffff), new Color(0x00ffffff));
|
||||
}
|
||||
@ -139,7 +140,7 @@ class ParticleSystem extends Node {
|
||||
_emitCounter -= rate;
|
||||
}
|
||||
|
||||
_elapsedTime += dt;
|
||||
// _elapsedTime += dt;
|
||||
|
||||
// Iterate over all particles
|
||||
for (int i = _particles.length -1; i >= 0; i--) {
|
||||
|
||||
@ -2,10 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import '../theme/colors.dart' as colors;
|
||||
import 'basic.dart';
|
||||
import 'material.dart';
|
||||
import "theme.dart";
|
||||
|
||||
/// A material design card
|
||||
///
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user