mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 15:24:35 +01:00
80 lines
2.1 KiB
Dart
80 lines
2.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
abstract final class UIs {
|
|
/// Font style
|
|
|
|
static const text11 = TextStyle(fontSize: 11);
|
|
static const text11Bold = TextStyle(
|
|
fontSize: 11,
|
|
fontWeight: FontWeight.w500,
|
|
);
|
|
static const text11Grey = TextStyle(color: Colors.grey, fontSize: 11);
|
|
static const text12 = TextStyle(fontSize: 12);
|
|
static const text12Bold = TextStyle(
|
|
fontSize: 12,
|
|
fontWeight: FontWeight.bold,
|
|
);
|
|
static const text12Grey = TextStyle(color: Colors.grey, fontSize: 12);
|
|
static const text13 = TextStyle(fontSize: 13);
|
|
static const text13Bold = TextStyle(
|
|
fontSize: 13,
|
|
fontWeight: FontWeight.bold,
|
|
);
|
|
static const text13Grey = TextStyle(color: Colors.grey, fontSize: 13);
|
|
static const text15 = TextStyle(fontSize: 15);
|
|
static const text15Bold = TextStyle(
|
|
fontSize: 15,
|
|
fontWeight: FontWeight.bold,
|
|
);
|
|
static const text18 = TextStyle(fontSize: 18);
|
|
static const text27 = TextStyle(fontSize: 27);
|
|
static const textGrey = TextStyle(color: Colors.grey);
|
|
static const textRed = TextStyle(color: Colors.red);
|
|
|
|
/// Icon
|
|
|
|
static final appIcon = Image.asset('assets/app_icon.png');
|
|
|
|
/// Padding
|
|
|
|
static const roundRectCardPadding =
|
|
EdgeInsets.symmetric(horizontal: 17, vertical: 13);
|
|
|
|
/// SizedBox
|
|
|
|
static const placeholder = SizedBox();
|
|
static const height7 = SizedBox(height: 7);
|
|
static const height13 = SizedBox(height: 13);
|
|
static const height77 = SizedBox(height: 77);
|
|
static const width13 = SizedBox(width: 13);
|
|
static const width7 = SizedBox(width: 7);
|
|
|
|
/// Misc
|
|
|
|
static const popMenuChild = Padding(
|
|
padding: EdgeInsets.only(left: 7),
|
|
child: Icon(
|
|
Icons.more_vert,
|
|
size: 21,
|
|
),
|
|
);
|
|
|
|
static const centerLoading = Center(child: CircularProgressIndicator());
|
|
|
|
static const centerSizedLoadingSmall = SizedBox(
|
|
width: 23,
|
|
height: 23,
|
|
child: Center(
|
|
child: CircularProgressIndicator(),
|
|
),
|
|
);
|
|
|
|
static const centerSizedLoading = SizedBox(
|
|
width: 77,
|
|
height: 77,
|
|
child: Center(
|
|
child: CircularProgressIndicator(),
|
|
),
|
|
);
|
|
}
|