forked from lxm_flutter/FlutterUnit
📝 替换项目中的所有var
This commit is contained in:
@@ -17,11 +17,13 @@ import 'package:flutter/material.dart';
|
||||
class HeightVerticalDivider extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var dataColor = [
|
||||
List<Color> dataColor = [
|
||||
Colors.red, Colors.yellow,
|
||||
Colors.blue, Colors.green];
|
||||
var dataThickness = [10.0, 20.0, 30.0, 40.0];
|
||||
var data = Map.fromIterables(dataColor, dataThickness);
|
||||
List<double> dataThickness = [10.0, 20.0, 30.0, 40.0];
|
||||
|
||||
Map<Color,double> data = Map.fromIterables(dataColor, dataThickness);
|
||||
|
||||
return Container(
|
||||
height: 150,
|
||||
child: Row(
|
||||
|
||||
Reference in New Issue
Block a user