calls/lib/lcd.dart

73 lines
1.7 KiB
Dart
Raw Normal View History

2024-08-08 18:31:24 -04:00
import 'package:flutter/material.dart';
class LCD extends StatefulWidget {
const LCD({super.key});
@override
State<LCD> createState() => _LCDState();
}
class _LCDState extends State<LCD> {
String? _currentTG;
int? _currentTGID;
void _setListening(String tg, int tgid) {
setState(() {
_currentTG = tg;
_currentTGID = tgid;
});
}
@override
Widget build(BuildContext context) {
return Container(
decoration: const BoxDecoration(
color: Colors.amber,
border: Border(
top: BorderSide(width: 3.0, color: Colors.black),
left: BorderSide(width: 3.0, color: Colors.black),
bottom: BorderSide(
width: 3.0, color: Color.fromARGB(172, 255, 255, 255)),
right: BorderSide(width: 3.0, color: Colors.white),
),
),
margin: const EdgeInsets.all(16.0),
alignment: Alignment.topCenter,
width: double.infinity,
child: AspectRatio(
aspectRatio: 16 / 9,
child: Container(),
));
}
}
class ScannerLabel extends StatefulWidget {
const ScannerLabel({super.key});
@override
State<ScannerLabel> createState() => _ScannerLabelState();
}
class _ScannerLabelState extends State<ScannerLabel> {
2024-08-08 21:55:40 -04:00
String _label = "Stillbox";
2024-08-08 18:31:24 -04:00
void setLabel(String s) {
_label = s;
}
@override
Widget build(BuildContext context) {
return Container(
margin: const EdgeInsets.only(top: 10),
alignment: Alignment.topLeft,
child: Text(_label,
textAlign: TextAlign.left,
style: const TextStyle(
fontSize: 22.0,
fontWeight: FontWeight.bold,
fontFamily: "Warnes",
)),
);
}
}