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

Fixed Create Group and join a group button differences #200

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

firoz3130
Copy link

Fixes #
Changed the sizes of the 'Create a group' and 'Join a group' buttons to be equal in size for consistency and improved aesthetics.

Screenshots of the changes-
Before
Screenshot (221)
After
Screenshot (222)

@firoz3130 firoz3130 changed the title Firos1 DifferentCreate Group and join a group Mar 20, 2023
@firoz3130 firoz3130 changed the title DifferentCreate Group and join a group Different Create Group and join a group Mar 20, 2023
@firoz3130 firoz3130 changed the title Different Create Group and join a group Fixed Create Group and join a group button differences Mar 20, 2023
Copy link

@virajbhartiya virajbhartiya left a comment

Choose a reason for hiding this comment

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

Why were the changes required in pubspec, gradle, and user_info.g.dart files? The only change required should be in the home_screen.dart file.

@firoz3130
Copy link
Author

firoz3130 commented Mar 28, 2023

Why were the changes required in pubspec, gradle, and user_info.g.dart files? The only change required should be in the home_screen.dart file.

Yeah ! Actually the changes have to be made in home_screen.dart . But since when I forked the code some of the versions have to be updated
->In android android/build.gradle needed update in ext.kotlin_version.
The update was needed from ext.kotlin_version = '1.6.10' to ext.kotlin_version = '1.8.0'
->"graphql_flutter" is needed to be updated to latest version. So it was required to update the "connectivity_plus" to be updated to its latest version.
At the same time, It was update the package "rxdart" to its latest version.

@virajbhartiya
Copy link

I think it will be better to make changes only in home_screen.dart and not change the versions as it may lead to other issues. It will be better to just update the fork to the latest version of the repo and make the necessary changes.

@@ -8,7 +8,7 @@
.buildlog/
.history
.svn/
*.env
.env
Copy link
Contributor

Choose a reason for hiding this comment

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

this change seems unnecessary. if you remove *, you will only remove files with name .env. Having *.env makes sure that any env file is ignored.
please revert is back

@@ -1,12 +1,12 @@
buildscript {
ext.kotlin_version = '1.6.10'
ext.kotlin_version = '1.8.0'
Copy link
Contributor

Choose a reason for hiding this comment

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

the code runs fine without this change. Why needed? can you check

@@ -20,11 +20,10 @@ class UserAdapter extends TypeAdapter<User> {
authToken: fields[1] as String,
email: fields[3] as String,
name: fields[2] as String,
location: fields[6] as Location,
Copy link
Contributor

Choose a reason for hiding this comment

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

removing a field about user model seems like a bad idea. This field is essential to user info model

@@ -178,7 +178,7 @@ class _MainScreenState extends State<MainScreen> with TickerProviderStateMixin {
width: 45.w,
child: HikeButton(
buttonWidth: homebwidth,
buttonHeight: homebheight - 2,
buttonHeight: homebheight - 13.5,
Copy link
Contributor

Choose a reason for hiding this comment

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

this change won't fix the issue. The issue is wrt text length and button width and height. It works fine on some devices with more width and in some cases the text goes into next line.
pls think of some way to make text more adaptive which can work on all devices

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.

3 participants