Jisho-Study-Tool/lib/view/screens/search/search_mechanisms/grid.dart

26 lines
632 B
Dart
Raw Normal View History

2021-07-17 12:19:03 +02:00
import 'package:flutter/material.dart';
2021-12-01 23:09:53 +01:00
import '../../../components/kanji/kanji_search_body/kanji_grid.dart';
import '../../../components/kanji/kanji_search_body/kanji_search_bar.dart';
2021-07-17 12:19:03 +02:00
class SearchGrid extends StatelessWidget {
final List<String> suggestions;
2021-12-01 23:09:53 +01:00
const SearchGrid({
required this.suggestions,
Key? key,
}) : super(key: key);
2021-07-17 12:19:03 +02:00
@override
Widget build(BuildContext context) {
2021-12-01 23:09:53 +01:00
return Column(
children: [
const SizedBox(height: 10),
const KanjiSearchBar(),
const SizedBox(height: 10),
Expanded(child: KanjiGrid(suggestions: suggestions))
],
);
2021-07-17 12:19:03 +02:00
}
2021-12-01 23:09:53 +01:00
}