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

29 lines
761 B
Dart
Raw Normal View History

2022-01-14 16:10:35 +01:00
import 'package:flutter/material.dart';
2022-01-19 02:10:05 +01:00
2022-01-14 16:10:35 +01:00
import '../../../components/drawing_board/drawing_board.dart';
2022-01-19 02:10:05 +01:00
import '../../../routing/routes.dart';
2022-01-14 16:10:35 +01:00
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,
2022-01-19 02:10:05 +01:00
Routes.kanjiSearch,
2022-01-14 16:10:35 +01:00
arguments: suggestion,
),
),
],
),
);
}
}