Skip to content

Commit

Permalink
Merge 3df29a2 into c7e710a
Browse files Browse the repository at this point in the history
  • Loading branch information
albertms10 committed Feb 8, 2024
2 parents c7e710a + 3df29a2 commit 43a72a4
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 29 deletions.
1 change: 1 addition & 0 deletions lib/src/pages/bookmark_collection_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class BookmarkCollectionPage extends StatelessWidget {
collection.name,
style: const TextStyle(
fontVariations: [FontVariation.weight(600)],
overflow: TextOverflow.fade,
),
),
backgroundColor: theme.canvasColor,
Expand Down
5 changes: 4 additions & 1 deletion lib/src/pages/collections_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ class CollectionsPage extends StatelessWidget {
appBar: AppBar(
title: Text(
appLocalizations.myCollections,
style: const TextStyle(fontVariations: [FontVariation.weight(600)]),
style: const TextStyle(
fontVariations: [FontVariation.weight(600)],
overflow: TextOverflow.fade,
),
),
backgroundColor: theme.canvasColor,
surfaceTintColor: theme.canvasColor,
Expand Down
5 changes: 4 additions & 1 deletion lib/src/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ class HomePage extends StatelessWidget {
appBar: AppBar(
title: const Text(
'El meu DIEC',
style: TextStyle(fontVariations: [FontVariation.weight(600)]),
style: TextStyle(
fontVariations: [FontVariation.weight(600)],
overflow: TextOverflow.fade,
),
),
backgroundColor: theme.canvasColor,
surfaceTintColor: theme.canvasColor,
Expand Down
64 changes: 37 additions & 27 deletions lib/src/pages/word_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,46 @@ class WordPage extends StatelessWidget {
Widget build(BuildContext context) {
final theme = Theme.of(context);

return Scaffold(
appBar: AppBar(
title: SelectableText(
word.word,
maxLines: 1,
style: theme.textTheme.displaySmall!.copyWith(fontSize: 32),
return ClipRRect(
borderRadius: const BorderRadiusDirectional.only(
topStart: Radius.circular(30),
topEnd: Radius.circular(30),
),
child: Scaffold(
appBar: AppBar(
scrolledUnderElevation: 6,
elevation: 2,
title: SelectableText(
word.word,
maxLines: 1,
style: theme.textTheme.displaySmall!.copyWith(
fontSize: 32,
// See https://github.com/flutter/flutter/issues/80434
overflow: TextOverflow.fade,
),
),
backgroundColor: Colors.transparent,
leading: IconButton.filledTonal(
onPressed: () => Navigator.of(context).pop(),
icon: const Icon(Icons.close),
),
centerTitle: true,
actions: [
BookmarkButton(word: word, isTonalFilled: true),
IconButton.filledTonal(
onPressed: () => Share.shareUri(const DIECRoutes().wordUri(word)),
icon: const Icon(Icons.ios_share_rounded),
),
const SizedBox(width: 4),
],
toolbarHeight: 72,
),
backgroundColor: Colors.transparent,
surfaceTintColor: Colors.transparent,
shadowColor: Colors.transparent,
leading: IconButton.filledTonal(
onPressed: () => Navigator.of(context).pop(),
icon: const Icon(Icons.close),
),
centerTitle: true,
actions: [
BookmarkButton(word: word, isTonalFilled: true),
IconButton.filledTonal(
onPressed: () => Share.shareUri(const DIECRoutes().wordUri(word)),
icon: const Icon(Icons.ios_share_rounded),
body: SingleChildScrollView(
child: Padding(
padding: const EdgeInsetsDirectional.all(20),
child: DefinitionEntrySenses(word: word),
),
const SizedBox(width: 4),
],
toolbarHeight: 72,
),
backgroundColor: Colors.transparent,
body: SingleChildScrollView(
child: Padding(
padding: const EdgeInsetsDirectional.all(20),
child: DefinitionEntrySenses(word: word),
),
),
);
Expand Down

0 comments on commit 43a72a4

Please sign in to comment.