在Dart Packages/flutter/src/material/constans.dart
/// The height of the toolbar component of the [AppBar]. const double kToolbarHeight = 56.0; /// The height of the bottom navigation bar. const double kBottomNavigationBarHeight = 56.0; /// The height of a tab bar containing text. const double kTextTabBarHeight = 48.0; /// The amount of time theme change animations should last. const Duration kThemeChangeDuration = Duration(milliseconds: 200); /// The radius of a circular material ink response in logical pixels. const double kRadialReactionRadius = 20.0; /// The amount of time a circular material ink response should take to expand to its full size. const Duration kRadialReactionDuration = Duration(milliseconds: 100); /// The value of the alpha channel to use when drawing a circular material ink response. const int kRadialReactionAlpha = 0x1F; /// The duration of the horizontal scroll animation that occurs when a tab is tapped. const Duration kTabScrollDuration = Duration(milliseconds: 300); /// The horizontal padding included by [Tab]s. const EdgeInsets kTabLabelPadding = EdgeInsets.symmetric(horizontal: 16.0); /// The padding added around material list items. const EdgeInsets kMaterialListPadding = EdgeInsets.symmetric(vertical: 8.0);dart有内置的md5加密包,先引入头文件:
import 'dart:convert'; import 'package:convert/convert.dart'; import 'package:crypto/crypto.dart';md5加密方法:
// md5 加密 String generateMd5(String data) { var content = new Utf8Encoder().convert(data); var digest = md5.convert(content); // 这里其实就是 digest.toString() return hex.encode(digest.bytes); }可以单个图片引入,也可以整个文件夹引入
转载于:https://www.cnblogs.com/joe235/p/11498060.html