import 'package:flutter/material.dart'; class LCD extends StatefulWidget { const LCD({super.key}); @override State createState() => _LCDState(); } class _LCDState extends State { 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 createState() => _ScannerLabelState(); } class _ScannerLabelState extends State { 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", )), ); } }