Jisho-Study-Tool/lib/screens/search/search_mechanisms/drawing.dart

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,
),
),
],
),
);
}
}