Skip to content

Commit

Permalink
icones um pouco melhores
Browse files Browse the repository at this point in the history
  • Loading branch information
jeancarlopolo committed Mar 1, 2024
1 parent 9e059cc commit b074056
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 15 deletions.
1 change: 0 additions & 1 deletion assets/icone_github.svg

This file was deleted.

1 change: 0 additions & 1 deletion assets/icone_linkedin.svg

This file was deleted.

5 changes: 3 additions & 2 deletions lib/src/desktop/pages/sobre.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:icons_plus/icons_plus.dart';
import 'package:meu_portfolio/src/widgets/sobre/botao_rede.dart';
import 'package:meu_portfolio/src/widgets/sobre/botoes_rede.dart';
import 'package:meu_portfolio/src/widgets/sobre/minha_foto.dart';
Expand All @@ -10,11 +11,11 @@ class SobrePage extends StatelessWidget {

static const botoes = [
BotaoRede(
icone: 'assets/icone_linkedin.svg',
icone: Bootstrap.linkedin,
url: 'https://www.linkedin.com/in/jean-carlo-dev/',
),
BotaoRede(
icone: 'assets/icone_github.svg',
icone: Bootstrap.github,
url: 'https://github.com/jeancarlopolo',
),
];
Expand Down
24 changes: 24 additions & 0 deletions lib/src/widgets/formacao/botao_conhecimento.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';

class BotaoConhecimento extends StatelessWidget {
const BotaoConhecimento(
{super.key,
required this.svg,
this.height,
this.width});
final SvgPicture svg;
final double? height, width;

@override
Widget build(BuildContext context) {
return Container(
height: height,
width: width,
alignment: Alignment.center,
decoration: BoxDecoration(borderRadius: BorderRadius.circular(8)),
padding: const EdgeInsets.all(5),
child: svg,
);
}
}
5 changes: 3 additions & 2 deletions lib/src/widgets/formacao/lugar_educacao.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class LugarEducacao extends StatelessWidget {
final double? altura, largura;
final DateTime inicio;
final DateTime? fim;
final Uri imagem;
final String imagem;

String get dataTotal => fim != null
? '${inicio.month}/${inicio.year} - ${fim!.month}/${fim!.year}'
: '${inicio.month}/${inicio.year} - Presente';
Expand All @@ -30,7 +31,7 @@ class LugarEducacao extends StatelessWidget {
child: Row(
children: [
Image.network(
imagem.toString(),
imagem,
fit: BoxFit.contain,
),
Column(
Expand Down
10 changes: 4 additions & 6 deletions lib/src/widgets/sobre/botao_rede.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:universal_html/html.dart';

class BotaoRede extends StatelessWidget {
Expand All @@ -10,7 +9,7 @@ class BotaoRede extends StatelessWidget {
this.height,
this.width});
final String url;
final String icone;
final IconData icone;
final double? height, width;

@override
Expand All @@ -25,11 +24,10 @@ class BotaoRede extends StatelessWidget {
alignment: Alignment.center,
decoration: BoxDecoration(borderRadius: BorderRadius.circular(8)),
padding: const EdgeInsets.all(5),
child: SvgPicture.asset(
child: Icon(
icone,
colorFilter: ColorFilter.mode(
Theme.of(context).colorScheme.onBackground, BlendMode.srcIn),
height: 40,
color: Theme.of(context).colorScheme.onBackground,
size: 40,
),
),
);
Expand Down
8 changes: 8 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.0.2"
icons_plus:
dependency: "direct main"
description:
name: icons_plus
sha256: "8e2f601b8605d45dd55b106a0da084a1809125077a49574ca22e8bcd5b6e86f0"
url: "https://pub.dev"
source: hosted
version: "5.0.0"
js:
dependency: transitive
description:
Expand Down
5 changes: 2 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ dependencies:
flutter:
sdk: flutter
flutter_animate: ^4.4.0
flutter_svg: ^2.0.9
flutter_svg: ^2.0.10+1
get_it: ^7.6.7
google_fonts: ^6.1.0
google_nav_bar: ^5.0.6
icons_plus: ^5.0.0
lottie: ^3.0.0
page_transition: ^2.1.0
signals: ^4.4.0
Expand All @@ -63,8 +64,6 @@ flutter:
- assets/botao_tema.json
- assets/splash.json
- assets/foto_jean.png
- assets/icone_linkedin.svg
- assets/icone_github.svg
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
Expand Down

0 comments on commit b074056

Please sign in to comment.