mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
refactor(mobile): refactor to use context helpers for consistency (#14235)
refactor to use context helpers for consistency Co-authored-by: dvbthien <dvbthien@gmail.com>
This commit is contained in:
parent
45ba0cc3ac
commit
e8da6604c9
28 changed files with 66 additions and 46 deletions
|
|
@ -92,7 +92,7 @@ class CropImagePage extends HookWidget {
|
|||
IconButton(
|
||||
icon: Icon(
|
||||
Icons.rotate_left,
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
color: context.themeData.iconTheme.color,
|
||||
),
|
||||
onPressed: () {
|
||||
cropController.rotateLeft();
|
||||
|
|
@ -101,7 +101,7 @@ class CropImagePage extends HookWidget {
|
|||
IconButton(
|
||||
icon: Icon(
|
||||
Icons.rotate_right,
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
color: context.themeData.iconTheme.color,
|
||||
),
|
||||
onPressed: () {
|
||||
cropController.rotateRight();
|
||||
|
|
@ -203,7 +203,7 @@ class _AspectRatioButton extends StatelessWidget {
|
|||
iconData,
|
||||
color: aspectRatio.value == ratio
|
||||
? context.primaryColor
|
||||
: Theme.of(context).iconTheme.color,
|
||||
: context.themeData.iconTheme.color,
|
||||
),
|
||||
onPressed: () {
|
||||
cropController.crop = const Rect.fromLTRB(0.1, 0.1, 0.9, 0.9);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue