-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(word_page): ♻️ extract widget (#43)
* refactor(word_page): ♻️ extract widget - Rename elimina → treu - Rename `interactive` → `isInteractive` - Enable interaction for Chips * feat(word_page): ✨ use standard `showModalBottomSheet` * feat(scope_chip): ♿️ show tooltip
- Loading branch information
1 parent
5f03c67
commit 9fe52b1
Showing
5 changed files
with
75 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import 'package:el_meu_diec/src/widgets/autocomplete_entry_card.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
import '../model/word.dart'; | ||
|
||
class WordPage extends StatelessWidget { | ||
final Word word; | ||
|
||
const WordPage({super.key, required this.word}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final theme = Theme.of(context); | ||
|
||
return Scaffold( | ||
backgroundColor: Colors.transparent, | ||
body: SingleChildScrollView( | ||
child: Padding( | ||
padding: const EdgeInsetsDirectional.all(20), | ||
child: Column( | ||
mainAxisSize: MainAxisSize.min, | ||
children: [ | ||
Text( | ||
word.word, | ||
style: theme.textTheme.displaySmall, | ||
textAlign: TextAlign.start, | ||
), | ||
const SizedBox(height: 24), | ||
DefinitionEntrySenses(word: word), | ||
], | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters