fluffychat/lib/pangea/morphs/morph_feature_display.dart
wcjord 8abf036381
Refactor: Move toolbar content to bottom of screen
Co-authored-by: ggurdin <ggurdin@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>
2025-03-06 15:52:07 -05:00

43 lines
1.1 KiB
Dart

import 'package:flutter/material.dart';
import 'package:fluffychat/pangea/morphs/get_grammar_copy.dart';
import 'package:fluffychat/pangea/morphs/morph_icon.dart';
class MorphFeatureDisplay extends StatelessWidget {
const MorphFeatureDisplay({
super.key,
required String morphFeature,
required String morphTag,
}) : _morphFeature = morphFeature,
_morphTag = morphTag;
final String _morphFeature;
final String _morphTag;
@override
Widget build(BuildContext context) {
return Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(
width: 32.0,
height: 32.0,
child: MorphIcon(
morphFeature: _morphFeature,
morphTag: _morphTag,
),
),
const SizedBox(width: 10.0),
Text(
getGrammarCopy(
category: _morphFeature,
lemma: _morphTag,
context: context,
) ??
_morphTag,
style: Theme.of(context).textTheme.titleLarge,
),
],
);
}
}