1
0
mirror of https://github.com/h7x4/Jisho-Study-Tool.git synced 2024-12-22 13:57:29 +01:00
Jisho-Study-Tool/lib/screens/search/search_mechanisms/drawing.dart
2022-01-19 02:10:05 +01:00

29 lines
761 B
Dart

import 'package:flutter/material.dart';
import '../../../components/drawing_board/drawing_board.dart';
import '../../../routing/routes.dart';
class KanjiDrawingSearch extends StatelessWidget {
const KanjiDrawingSearch({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Draw a kanji')),
body: Column(
children: [
Expanded(child: Column()),
DrawingBoard(
onlyOneCharacterSuggestions: true,
onSuggestionChosen: (suggestion) => Navigator.popAndPushNamed(
context,
Routes.kanjiSearch,
arguments: suggestion,
),
),
],
),
);
}
}