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

Adds an epic looking dark theme called "Obsidium" #144

Merged
merged 6 commits into from Aug 23, 2021

Conversation

tlietz
Copy link
Contributor

@tlietz tlietz commented Aug 19, 2021

In order for this to be successful, the PR at https://github.com/bbedward/flutter_barcode_reader/pull/1 needs to be accepted so that barcode_scan.dart has OBSIDIUM defined.

@bbedward
Copy link
Collaborator

We'll take a look at this tomorrow, thanks

@bbedward
Copy link
Collaborator

I think you actually want to create a theme as I commented here:

bbedward/flutter_barcode_reader#1

--

In pubspec.yaml you can change the flutter_barcode_reader reference to your fork too, https://github.com/mintware-de/flutter_barcode_reader

That would make it so I can run the workflow on this PR and get an APK to check out.

@tlietz
Copy link
Contributor Author

tlietz commented Aug 23, 2021

I am able to build the app on my emulator. I tried looking into the error messages given by the checks, but could not get anywhere with them.

@bbedward bbedward requested a review from yekta August 23, 2021 14:15
@bbedward
Copy link
Collaborator

I'm good with this, but will wait for @yekta to review. Can you also change back the pubspec reference to bbedward/flutter_barcode_reader since I merged your theme there.

@@ -437,7 +437,80 @@ class ThoriumTheme extends BaseTheme {
AppIconEnum appIcon = AppIconEnum.THORIUM;
}

enum AppIconEnum { NATRIUM, TITANIUM, INDIUM, NEPTUNIUM, THORIUM }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed this actually, AppIconEnum is for on iOS devices the app icon changes with the theme, but since there is no icon for your theme you should just use the NATRIUM (default) icon.

lib/themes.dart Outdated
@@ -447,6 +520,9 @@ class AppIcon {
}
String iconStr = "natrium";
switch (iconToChange) {
case AppIconEnum.OBSIDIUM:
iconStr = "obsidium";
break;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get rid of this

}

enum AppIconEnum { NATRIUM, TITANIUM, INDIUM, NEPTUNIUM, THORIUM, OBSIDIUM }

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove obsidium

lib/themes.dart Outdated
BoxShadow boxShadowButton = BoxShadow(color: Colors.transparent);

OverlayTheme qrScanTheme = OverlayTheme.OBSIDIUM;
AppIconEnum appIcon = AppIconEnum.OBSIDIUM;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this to AppIconEnum.NATRIUM

@yekta yekta merged commit c924737 into appditto:master Aug 23, 2021
@yekta
Copy link
Collaborator

yekta commented Aug 23, 2021

Thanks for the PR @tlietz. We'll be doing some tweaks to the theme but it'll be released pretty soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants