📝 替换项目中的所有var

This commit is contained in:
toly
2020-10-21 16:06:38 +08:00
parent b837084305
commit 07a97df5b2
159 changed files with 405 additions and 417 deletions

View File

@@ -13,11 +13,11 @@ import 'package:flutter/material.dart';
class CustomVerticalDivider extends StatelessWidget {
@override
Widget build(BuildContext context) {
var dataColor = [
List<Color> dataColor = [
Colors.red, Colors.yellow,
Colors.blue, Colors.green];
var dataThickness = [1.0, 2.0, 4.0, 6.0];
var data = Map.fromIterables(dataColor, dataThickness);
List<double> dataThickness = [1.0, 2.0, 4.0, 6.0];
Map<Color, double> data = Map.fromIterables(dataColor, dataThickness);
return Container(
height: 150,
child: Row(