calls/lib/views/radio.dart

63 lines
2.4 KiB
Dart
Raw Normal View History

2024-08-10 13:27:12 -04:00
import 'package:flutter/material.dart';
2024-08-10 14:24:28 -04:00
import '../../views/lcd.dart';
import '../../views/keypad.dart';
2024-08-10 13:27:12 -04:00
class MainRadio extends StatefulWidget {
const MainRadio({super.key, required this.title});
// This widget is the home page of your application. It is stateful, meaning
// that it has a State object (defined below) that contains fields that affect
// how it looks.
// This class is the configuration for the state. It holds the values (in this
// case the title) provided by the parent (in this case the App widget) and
// used by the build method of the State. Fields in a Widget subclass are
// always marked "final".
final String title;
@override
State<MainRadio> createState() => _MainRadioState();
}
class _MainRadioState extends State<MainRadio> {
@override
Widget build(BuildContext context) {
// This method is rerun every time setState is called, for instance as done
// by the _incrementCounter method above.
//
// The Flutter framework has been optimized to make rerunning build methods
// fast, so that you can just rebuild anything that needs updating rather
// than having to individually change instances of widgets.
return Scaffold(
body: const Center(
// Center is a layout widget. It takes a single child and positions it
// in the middle of the parent.
child: SizedBox(
width: 500.0,
child: Column(
// Column is also a layout widget. It takes a list of children and
// arranges them vertically. By default, it sizes itself to fit its
// children horizontally, and tries to be as tall as its parent.
//
// Column has various properties to control how it sizes itself and
// how it positions its children. Here we use mainAxisAlignment to
// center the children vertically; the main axis here is the vertical
// axis because Columns are vertical (the cross axis would be
// horizontal).
//
// TRY THIS: Invoke "debug painting" (choose the "Toggle Debug Paint"
// action in the IDE, or press "p" in the console), to see the
// wireframe for each widget.
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
ScannerLabel(),
LCD(),
Keypad(),
],
)),
),
);
}
}