forked from lxm_flutter/FlutterUnit
📝 替换项目中的所有var
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user