Jisho-Study-Tool/lib/screens/debug.dart

28 lines
704 B
Dart
Raw Permalink Normal View History

2022-01-19 02:10:05 +01:00
import 'package:flutter/material.dart';
import '../components/drawing_board/drawing_board.dart';
class DebugView extends StatelessWidget {
const DebugView({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Column(
mainAxisAlignment: MainAxisAlignment.end,
children: [
DrawingBoard(
allowHiragana: true,
allowKatakana: true,
allowOther: true,
onSuggestionChosen: (s) => ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text('Chose: $s'),
duration: const Duration(milliseconds: 600),
),
),
),
],
);
}
}