Remove some demo project stuff

This commit is contained in:
2023-09-06 12:15:45 -07:00
parent 9ac4b45422
commit 6dc224b229
2 changed files with 9 additions and 59 deletions

View File

@ -3,11 +3,11 @@ import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';
void main() {
runApp(const MyApp());
runApp(const App());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
class App extends StatelessWidget {
const App({super.key});
@override
Widget build(BuildContext context) {
@ -22,21 +22,19 @@ class MyApp extends StatelessWidget {
data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0),
child: child!);
},
home: const MyHomePage(title: 'DARTTERM'),
home: const Viewer(),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
class Viewer extends StatefulWidget {
const Viewer({super.key});
@override
State<MyHomePage> createState() => _MyHomePageState();
State<Viewer> createState() => _ViewerState();
}
class _MyHomePageState extends State<MyHomePage> {
class _ViewerState extends State<Viewer> {
Ticker? ticker;
@override
@ -58,22 +56,3 @@ class _MyHomePageState extends State<MyHomePage> {
setState(() {/* state changed, force a redraw */});
}
}
/*
class TerminalCustomPainter extends CustomPainter {
@override
void paint(Canvas canvas, Size size) {
final paint = Paint()
..style = PaintingStyle.stroke
..strokeWidth = 4.0
..color = Colors.indigo;
canvas.drawRect(
Rect.fromLTWH(-20 + Random().nextDouble() * 20 - 10, -20, 40, 40),
paint);
}
@override
bool shouldRepaint(TerminalCustomPainter oldDelegate) => true;
}
*/