mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-10 22:28:55 +03:30
37 lines
842 B
Dart
Executable File
37 lines
842 B
Dart
Executable File
import 'package:flutter/material.dart';
|
|
|
|
class InfoHeader extends StatelessWidget {
|
|
const InfoHeader({
|
|
Key? key,
|
|
required double deviceBlockSize,
|
|
required String label,
|
|
}) : _deviceBlockSize = deviceBlockSize,
|
|
_label = label,
|
|
super(key: key);
|
|
|
|
final double _deviceBlockSize;
|
|
final String _label;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
padding: EdgeInsets.only(
|
|
left: 20,
|
|
top: 20,
|
|
bottom: 10,
|
|
right: 20,
|
|
),
|
|
child: Text(
|
|
_label,
|
|
textAlign: TextAlign.left,
|
|
style: TextStyle(
|
|
color: Colors.black,
|
|
fontSize: 7 * _deviceBlockSize,
|
|
letterSpacing: _deviceBlockSize,
|
|
fontWeight: FontWeight.w700,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|