mirror of
https://github.com/h7x4/Jisho-Study-Tool.git
synced 2024-12-22 05:57:28 +01:00
28 lines
704 B
Dart
28 lines
704 B
Dart
|
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),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
],
|
||
|
);
|
||
|
}
|
||
|
}
|