Jisho-Study-Tool/lib/screens/debug.dart

59 lines
1.7 KiB
Dart

import 'package:flutter/material.dart';
import '../components/common/kanji_box.dart';
// import '../components/drawing_board/drawing_board.dart';
// import '../components/library/add_to_library_dialog.dart';
class DebugView extends StatelessWidget {
const DebugView({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
// return const Center(child: KanjiBox(kanji: '漢'));
return ListView(
children: [
Row(
children: [
KanjiBox.withPadding(kanji: '', padding: 5),
KanjiBox.withFontSize(kanji: '', fontSize: 20),
const KanjiBox.withFontSizeAndPadding(
kanji: '',
fontSize: 40,
padding: 10,
),
KanjiBox.withFontSize(kanji: '', fontSize: 40),
KanjiBox.withPadding(kanji: '', padding: 10),
],
),
const Divider(),
KanjiBox.expanded(kanji: '', ratio: 1),
const Divider(),
KanjiBox.expanded(kanji: '')
],
);
// return Column(
// mainAxisAlignment: MainAxisAlignment.end,
// children: const [
// ElevatedButton(
// onPressed: () => showAddToLibraryDialog(
// context: context,
// entryText: 'lol',
// ),
// child: const Text('Add entry to list'),
// ),
// DrawingBoard(
// allowHiragana: true,
// allowKatakana: true,
// allowOther: true,
// onSuggestionChosen: (s) => ScaffoldMessenger.of(context).showSnackBar(
// SnackBar(
// content: Text('Chose: $s'),
// duration: const Duration(milliseconds: 600),
// ),
// ),
// ),
// ],
// );
}
}