Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paintroid-726 : Fix project overflow menu button color #63

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: a62623f56f2d1d0e85a4a3c73509cd2832d5c86f

COCOAPODS: 1.14.3
COCOAPODS: 1.15.0
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ enum ProjectOverflowMenuOption {

class ProjectOverflowMenu extends ConsumerStatefulWidget {
final Project project;
final Color? iconColor;

const ProjectOverflowMenu({Key? key, required this.project})
: super(key: key);
const ProjectOverflowMenu({
Key? key,
required this.project,
this.iconColor,
}) : super(key: key);

@override
ConsumerState<ProjectOverflowMenu> createState() =>
Expand All @@ -39,9 +43,13 @@ class _ProjectOverFlowMenuState extends ConsumerState<ProjectOverflowMenu> {
loading: () {},
);

return PopupMenuButton(
Widget icon = widget.iconColor != null
? Icon(Icons.more_vert, color: widget.iconColor)
: const Icon(Icons.more_vert);

return PopupMenuButton<ProjectOverflowMenuOption>(
color: Theme.of(context).colorScheme.background,
icon: const Icon(Icons.more_vert),
icon: icon,
shape: RoundedRectangleBorder(
side: const BorderSide(),
borderRadius: BorderRadius.circular(20),
vishad-tyagi marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,10 @@ class _ProjectPreview extends StatelessWidget {
child: latestModifiedProject == null
? null
: ProjectOverflowMenu(
key: const Key('ProjectOverflowMenu Key0'),
project: latestModifiedProject!,
),
key: const Key('ProjectOverflowMenu Key0'),
project: latestModifiedProject!,
iconColor: const Color(0xFF191C1D),
vishad-tyagi marked this conversation as resolved.
Show resolved Hide resolved
),
),
],
);
Expand Down
Loading