Uh oh!
There was an error while loading. Please reload this page.
Added Card Widgets (_DevListCardFirst and _DevListCardSecond) - #246
Conversation
File: dev_list.dart Added card widgets to list of devs Icons to be updated to socials, temporarily material icons Can try out card dark mode by changing isDark to true File: devboard_page.dart modified DevboardPage widget, for fixed card list view sizing Added ListType enum Added other card types to Devboard Page File: devs.json Added socials
Jansalvador1445
commented
Feb 11, 2021
Woah! I liked the design! But it has conflicts :( Please rebase. |
bisunajaime
commented
Feb 11, 2021
This is noted. Thanks! |
Jansalvador1445
commented
Feb 11, 2021
Still has |
bisunajaime
commented
Feb 11, 2021
Hello, could I ask for help on this. I'm very new to this as it is my first time contributing. |
Jansalvador1445
commented
Feb 11, 2021
Sure, wait let me, check your repo. |
File: dev_list.dart Added card widgets to list of devs Icons to be updated to socials, temporarily material icons Can try out card dark mode by changing isDark to true File: devboard_page.dart modified DevboardPage widget, for fixed card list view sizing Added ListType enum Added other card types to Devboard Page File: devs.json Added socials
fe22483 to
98d6b42CompareI think I got it to work, though I may have to comment out some of the list views in the devboard_page.dart |
Modified devboard_page.dart Still shows grid, but can be changed by changing the "listType" parameter.
…nto 229/josejaime # Conflicts: # lib/features/devboard/devboard_page.dart # lib/features/devboard/devs/devs_list.dart
Jansalvador1445
commented
Feb 11, 2021
Added changes here, but please fix the |
Jansalvador1445
commented
Feb 11, 2021
And the card shadow, i think i accidentally removed it. |
bisunajaime
commented
Feb 11, 2021
Fixed the overflow issue by increasing the height of the card and added maxLines in Text widgets to avoid overflowing |
Jansalvador1445
commented
Feb 11, 2021
Will test it now. |
| child: Consumer<List<Dev>>( | ||
| builder: (_, data, __) => DevsList( | ||
| devs: data, | ||
| listType: ListType.CARD_FIRST, |
There was a problem hiding this comment.
I think we don't need this one
| import 'package:font_awesome_flutter/font_awesome_flutter.dart'; | ||
| import 'package:url_launcher/url_launcher.dart'; | ||
| enum ListType { AVATAR, CARD_FIRST, CARD_SECOND, GRID } |
There was a problem hiding this comment.
I think we dont need this
| class DevsList extends StatelessWidget { | ||
| final List<Dev> devs; | ||
| final ListType listType; |
| const DevsList({ | ||
| Key key, | ||
| this.devs = const [], | ||
| this.listType = ListType.GRID, |
| /// Sort dev's ascending | ||
| devs.sort((a, b) => a.name.compareTo(b.name)); | ||
| if (this.listType == ListType.AVATAR) { |
| ); | ||
| } | ||
| if (this.listType == ListType.CARD_FIRST) { |
There was a problem hiding this comment.
let's remove conditional statement, will use Card_first
| ); | ||
| } | ||
| if (this.listType == ListType.CARD_SECOND) { |
| } | ||
| } | ||
| class _DevListCardSecond extends StatelessWidget { |
| } | ||
| } | ||
| class _DevListCardFirst extends StatelessWidget { |
There was a problem hiding this comment.
From _DevListCardFirst to _DevListCard
| Widget build(BuildContext context) { | ||
| final bool isDark = false; | ||
| final Color lightColor = Colors.white.withOpacity(.6); |
There was a problem hiding this comment.
Let's add this to the Constant/Colors file or folder.
| final Color lightColor = Colors.white.withOpacity(.6); | ||
| final Color darkColor = Colors.black.withOpacity(.6); | ||
| final TextStyle title = TextStyle( |
There was a problem hiding this comment.
I think we could embed this to the destionation
There was a problem hiding this comment.
Could you clarify on this, where can I find the destination file/folder?
There was a problem hiding this comment.
lib/constant/colors.dart -> please add colors.dart
class ColorConstant {
//Some Codes
}
| @@ -4,6 +4,8 @@ import 'package:devs/features/devboard/devs/devs_list.dart'; | |||
| import 'package:flutter/material.dart'; | |||
| import 'package:provider/provider.dart'; | |||
| } | ||
| } | ||
| class _DevListItem extends StatelessWidget { |
There was a problem hiding this comment.
Remove this, since we will use the Second card
There was a problem hiding this comment.
No need for this will be removed.
Jansalvador1445
commented
Feb 11, 2021
bisunajaime
commented
Feb 11, 2021
Jansalvador1445
commented
Feb 11, 2021
When I get home, i'll try to push on your branch. |
bisunajaime
commented
Feb 11, 2021
Jansalvador1445
commented
Feb 11, 2021
Nice! Will check it now. |
Added colors.dart file in core/constants folder for text colors to be added Made use of Card grid in devboard_page.dart Made use of the other card format for mobile screens due to the widget overflow of the other card.
Jansalvador1445
commented
Feb 11, 2021
Just pushed on your branch, can you |
Jansalvador1445
commented
Feb 11, 2021
If everything is good, we can merge this one. |
Fixed alignment of CircleAvatar, and mobile gridview because some widgets were overflowing.
bisunajaime
commented
Feb 11, 2021
Got it, no errors encountered, though I experienced some widget overflowing but was able to fix it in my latest push. |
Jansalvador1445
commented
Feb 11, 2021
This is good on my side. Merging this now. |
Jansalvador1445
commented
Feb 11, 2021
Congrats @jose-bamboo! Wohooo! :D |
bisunajaime
commented
Feb 13, 2021
Really late reply, but thank you so much for the help! :) |
joshuadeguzman
commented
Feb 15, 2021
@allcontributors please add @jose-bamboo for design, code |
I've put up a pull request to add @jose-bamboo! 🎉 |
joshuadeguzman
commented
Feb 15, 2021
@allcontributors please add @Jansalvador1445 for mentoring, code, bug |
I've put up a pull request to add @Jansalvador1445! 🎉 |



File: dev_list.dart
Added card widgets to list of devs
Icons to be updated to socials, temporarily material icons
Can try out card dark mode by changing isDark to true
File: devboard_page.dart
modified DevboardPage widget, for fixed card list view sizing
Added ListType enum
Added other card types to Devboard Page
File: devs.json
Added socials
Card demo 1: https://imgur.com/vWuCXhX
Card demo 2: https://imgur.com/V1jslVt