Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
ui(Frontmatter): Use hintText instead of labelText in Text widget
Browse files Browse the repository at this point in the history
  • Loading branch information
iakdis committed Mar 31, 2023
1 parent 9ad872c commit bf5db76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/ssg/frontmatter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -162,23 +162,23 @@ class FrontmatterWidgetState extends State<FrontmatterWidget> {

Widget _textWidget(String source) {
final yaml = loadYaml(source) as YamlMap;
var labelText = yaml.entries.first.key.toString();
labelText = '${labelText[0].toUpperCase()}${labelText.substring(1)}';
var key = yaml.entries.first.key.toString();
key = '${key[0].toUpperCase()}${key.substring(1)}';

return Wrap(
spacing: 4.0,
runSpacing: 8.0,
crossAxisAlignment: WrapCrossAlignment.center,
children: [
Text('$labelText: '),
Text('$key: '),
ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 200),
child: TextField(
controller: frontMatterControllerUnsaved,
minLines: 1,
maxLines: null,
decoration: InputDecoration(
labelText: labelText,
hintText: key,
border: const OutlineInputBorder(),
),
),
Expand Down

0 comments on commit bf5db76

Please sign in to comment.