-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f8d1b2
commit e779b76
Showing
16 changed files
with
344 additions
and
188 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter/widgets.dart'; | ||
|
||
import '../../resources/Resources.dart'; | ||
import 'TextContent.dart'; | ||
import 'TextSubtitle.dart'; | ||
|
||
class SkillItem { | ||
String name; | ||
List<String> skillsList; | ||
|
||
SkillItem(this.name, this.skillsList); | ||
} | ||
|
||
class SkillsColumn extends StatelessWidget { | ||
final List<SkillItem> items; | ||
|
||
SkillsColumn(this.items); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Column( | ||
mainAxisAlignment: MainAxisAlignment.start, | ||
crossAxisAlignment: CrossAxisAlignment.end, | ||
children: _buildRowContent(), | ||
); | ||
} | ||
|
||
List<Widget> _buildRowContent() { | ||
return items.map((item) => SkillsBlock(item)).toList(); | ||
} | ||
} | ||
|
||
class SkillsBlock extends StatelessWidget { | ||
final SkillItem item; | ||
|
||
SkillsBlock(this.item); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Padding( | ||
padding: EdgeInsets.only(bottom: 8.0), | ||
child: Column( | ||
mainAxisAlignment: MainAxisAlignment.start, | ||
crossAxisAlignment: CrossAxisAlignment.end, | ||
children: [ | ||
TextSubtitle(text: item.name, textColor: AppColors.ContentDarkBlue,), | ||
Wrap( | ||
spacing: 4.0, | ||
children: _buildWrapContent(item.skillsList), | ||
) | ||
], | ||
), | ||
); | ||
} | ||
|
||
List<Widget> _buildWrapContent(List<String> items) { | ||
return items | ||
.map((item) => Container( | ||
padding: EdgeInsets.all(4.0), | ||
color: Colors.blueGrey, | ||
child: TextContent(text: item, textColor: Colors.black), | ||
)) | ||
.toList(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:threeactions_area/resources/Resources.dart'; | ||
|
||
class TextContentBig extends StatelessWidget { | ||
final String text; | ||
Color textColor = AppColors.ContentWhite; | ||
TextAlign textAlign = TextAlign.start; | ||
|
||
TextContentBig( | ||
{super.key, | ||
required this.text, | ||
this.textColor = AppColors.ContentWhite, | ||
this.textAlign = TextAlign.start}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return (Text( | ||
text, | ||
style: TextStylesContent.ContentBig.copyWith(color: textColor), | ||
textAlign: textAlign, | ||
)); | ||
} | ||
} |
Oops, something went wrong.