mirror of
https://github.com/amigan/calls.git
synced 2024-11-21 20:39:47 -05:00
72 lines
1.7 KiB
Dart
72 lines
1.7 KiB
Dart
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> {
|
|
String _label = "Stillbox";
|
|
|
|
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",
|
|
)),
|
|
);
|
|
}
|
|
}
|