Remove some demo project stuff
This commit is contained in:
@ -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;
|
||||
}
|
||||
*/
|
Reference in New Issue
Block a user