flutter: 建立 const boardBorderRadius 常量
This commit is contained in:
parent
1fe58d9c9d
commit
30b1928366
|
@ -11,6 +11,8 @@ class BoardWidget extends StatelessWidget {
|
|||
static const padding = 5.0;
|
||||
static const digitsHeight = 0.0;
|
||||
|
||||
static const double boardBorderRadius = 5;
|
||||
|
||||
final double width;
|
||||
final double height;
|
||||
final Function(BuildContext, int) onBoardTap;
|
||||
|
@ -25,7 +27,7 @@ class BoardWidget extends StatelessWidget {
|
|||
width: width,
|
||||
height: height,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(5),
|
||||
borderRadius: BorderRadius.circular(boardBorderRadius),
|
||||
color: ColorConst.boardBackgroundColor,
|
||||
),
|
||||
child: CustomPaint(
|
||||
|
|
Loading…
Reference in New Issue