-
Notifications
You must be signed in to change notification settings - Fork 93
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
added dark mode option #40
added dark mode option #40
Conversation
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME | |||
distributionPath=wrapper/dists | |||
zipStoreBase=GRADLE_USER_HOME | |||
zipStorePath=wrapper/dists | |||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip | |||
distributionUrl=https://services.gradle.org/distributions/gradle-6.0.1-all.zip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the changes require Gradle update from 5.6.2
to 6.0.1
?
lib/main.dart
Outdated
AppTheme( | ||
id: 'dark', | ||
data: ThemeData( | ||
primaryColor: Colors.grey[900], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be better, if we keep the colors for Dark Mode in app_theme
for reusability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok i will put in app_theme
lib/app_theme.dart
Outdated
@@ -1,7 +1,7 @@ | |||
import 'package:flutter/material.dart'; | |||
|
|||
class AppTheme { | |||
AppTheme._(); | |||
class PrimaryAppTheme { |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have used theme provider dependency whose AppTheme keyword was conflicting with the AppTheme class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use CVTheme or CircuitVerseTheme ? PrimaryTheme doesn't go well with the dark colours imo!
This comment has been minimized.
This comment has been minimized.
Adding on to @manjotsidhu 's suggestions, I think it gives better user experience if he/she can toggle between light and dark mode at any location from the app. Say that you're on |
Yes , I am working on all the changes mentioned |
I have made the asked changes |
@iCoder-007 can you send screenshots for only new changes for others to review ? |
Also please fix formatting's using |
I am not sure if the FAB button in home is a good idea or not. I think @Nitish145 @jaggu21 should give the inputs on this |
if you want i can place it in appbar at right |
I agree with @manjotsidhu . Have a look at the following screenshot. Apart from that few minor issues:
|
so should i remove fab button and place it in appbar right |
@iCoder-007 looks good to me, kindly run |
I have already done that but everything remains unchanged |
Here the logs say that |
This comment has been minimized.
This comment has been minimized.
when i am running flutter format . it shows unchanged |
It will show Unchanged for all files except |
Here is the diff of the changes while formatting : Diff (Click to expand)
|
@iCoder-007 we recently merged #37 and you might need to fix build errors and text colors for Dark Mode in Featured Project Card. |
…obile-app into introduce-dark-mode
Please check |
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME | |||
distributionPath=wrapper/dists | |||
zipStoreBase=GRADLE_USER_HOME | |||
zipStorePath=wrapper/dists | |||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip | |||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iCoder-007
@iCoder-007 can u please undo the last merge commit, and try rebasing to fix the conflicts |
pulling changes
i saw that that there are some new changes in master branch so i have pulled the changes and will fix the conflicts manually , will this work |
Yes |
…o introduce-dark-mode
…obile-app into introduce-dark-mode
I think due to latest merge the ui test are failing |
And sorry for the delays I was quiet busy |
@iCoder-007 Have you merged d60561b ? |
UI Test: EditProfileView: Fix Test (CircuitVerse#46)
…o introduce-dark-mode
@iCoder-007 try pushing again, the CI will pass |
okk |
…o introduce-dark-mode
…obile-app into introduce-dark-mode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make the requested changes.
@iCoder-007 Can you check if |
yes, and sorry for delay |
please check |
@tachyons Seems like @Nitish145 is busy, can you merge this ? |
With an attempt to make app more attractive I have added the dark mode to the app using theme provider since in today's time everyone like the dark mode .
Preview :
ScreenShots