-
Notifications
You must be signed in to change notification settings - Fork 7
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
Task : Add ability to change backend URL on the setting page #52
Conversation
lib/main.dart
Outdated
var lightTheme = ThemeData( | ||
primaryColorDark: Color(0xFF707070), | ||
primaryColorLight: Color(0xFF404040), | ||
inputDecorationTheme: const InputDecorationTheme( |
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.
You should not remove existing styles
lib/main.dart
Outdated
), | ||
brightness: Brightness.light, |
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 don't think we need that since we have colorScheme
lib/routes/settings.dart
Outdated
ElevatedButton( | ||
onPressed: () async { | ||
if (_formKey.currentState.validate()) { | ||
if (await confirm(context, |
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.
Separate confirm operation from the if
boolean confirmed = await confim(...
if (confirmed) {....
5dd8f56
to
99c0ef7
Compare
### Things done
Screenshots
![image](https://private-user-images.githubusercontent.com/49331376/306075927-9c76ed38-65f2-4393-8d6b-0a5ba5ac89aa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNzc5NzQsIm5iZiI6MTczOTM3NzY3NCwicGF0aCI6Ii80OTMzMTM3Ni8zMDYwNzU5MjctOWM3NmVkMzgtNjVmMi00MzkzLThkNmItMGE1YmE1YWM4OWFhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE2Mjc1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM3ZTE2OGI5YTQ3OWVmZWU1ZTJkN2FkMDhiZjVmNGJhODQyODVjZGUxOTY1YTQ1Yzc5ZDdjNTQwNmJmYWUwYzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.48uR-n_Bl8u-FdNbBfYOX8Q9GrNi3HLstBxJSdCnmis)
![image](https://private-user-images.githubusercontent.com/49331376/306075959-aadeadd0-4889-4e58-80ff-0856421af81a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNzc5NzQsIm5iZiI6MTczOTM3NzY3NCwicGF0aCI6Ii80OTMzMTM3Ni8zMDYwNzU5NTktYWFkZWFkZDAtNDg4OS00ZTU4LTgwZmYtMDg1NjQyMWFmODFhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE2Mjc1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEzNDM4Njk5OGIwODM2Njg2MzUyYmJlMTEyN2IxNTQzNTRlYWZlMjY5NTdjZTk2ZjQ1ZWYxZjQzZGYxZGRjYzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.O4bj93PV3DVXB7_pVBms4LkO7C7XvlyHkDFiwmHe5z0)
![image](https://private-user-images.githubusercontent.com/49331376/306075985-9cd5b0c3-0923-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