Skip to content

Commit

Permalink
Merge pull request #86 from fga-eps-mds/feat#133/Criar-logo-Arandu
Browse files Browse the repository at this point in the history
[STYLE]  Adicionando logo do aplicativo na tela welcome(fga-eps-mds/2024.2-ARANDU-DOC#133)
  • Loading branch information
GabrielCostaDeOliveira authored Jan 19, 2025
2 parents cb0f9dd + f6ea145 commit 0ef54fc
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 44 deletions.
Binary file added assets/images/Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 44 additions & 36 deletions lib/ui/welcome/view/welcome_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'package:flutter/rendering.dart';
import 'package:google_fonts/google_fonts.dart';

class WelcomeView extends StatefulWidget {

WelcomeView({super.key});

@override
Expand Down Expand Up @@ -36,47 +35,56 @@ class _WelcomeViewState extends State<WelcomeView> {
double nameSize = screenSize.height * 0.075;

return Center(
child: SingleChildScrollView(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
//Cículo com gradiente com possível logo sobreposta
Stack(
alignment: Alignment.center,
children: [
Container(
width: circleDiameter * 0.3,
height: circleDiameter *0.3,
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.primary,
shape: BoxShape.circle,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Stack(
alignment: Alignment.center,
children: [
// Círculo de fundo
Container(
width: circleDiameter * 0.3,
height: circleDiameter * 0.3,
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.primary,
shape: BoxShape.circle,
),
),
),
],
),

const SizedBox(height: 25),

//Titulo "arandú" com fonte amarante
Text(
"Arandú",
style: GoogleFonts.amarante(
textStyle: Theme.of(context).textTheme.bodyLarge?.copyWith(
fontSize: nameSize,
fontWeight: FontWeight.w500,
// Imagem com deslocamento para a esquerda
Transform.translate(
offset: Offset(-10, 0), // Move 30 pixels para a esquerda
child: Container(
child: Image.asset(
'assets/images/Logo.png',
width: circleDiameter * 0.24,
height: circleDiameter * 0.24,
fit: BoxFit.contain,
),
),
),
],
),
const SizedBox(height: 25),
// Título "arandú" com fonte amarante
Text(
"Arandú",
style: GoogleFonts.amarante(
textStyle: Theme.of(context).textTheme.bodyLarge?.copyWith(
fontSize: nameSize,
fontWeight: FontWeight.w500,
),
),
),
),
],
)));
],
),
);
}

Widget _startButton(BuildContext context) {
Size screenSize = MediaQuery.of(context).size;

double paddingHorizontal =
screenSize.width * 0.07; // largura da tela
double paddingHorizontal = screenSize.width * 0.07; // largura da tela
double paddingVertical = screenSize.height * 0.025; // da altura da tela
return SingleChildScrollView(
child: GestureDetector(
Expand All @@ -97,8 +105,8 @@ class _WelcomeViewState extends State<WelcomeView> {
child: Text(
"Começar",
style: Theme.of(context).textTheme.bodyLarge?.apply(
color: Theme.of(context).colorScheme.onPrimary,
),
color: Theme.of(context).colorScheme.onPrimary,
),
)),
),
);
Expand Down
10 changes: 2 additions & 8 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: aranduapp
description: "A new Flutter project."
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
publish_to: "none" # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
Expand Down Expand Up @@ -31,7 +31,6 @@ dependencies:
flutter:
sdk: flutter


# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.8
Expand All @@ -49,7 +48,6 @@ dependencies:
async: ^2.11.0
get_it: ^8.0.3


dev_dependencies:
flutter_test:
sdk: flutter
Expand All @@ -66,7 +64,6 @@ dev_dependencies:

# The following section is specific to Flutter packages.
flutter:

# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
Expand All @@ -76,10 +73,7 @@ flutter:
- assets/images/Component1.png
- assets/images/Component2.png
- assets/images/Component3.png




- assets/images/Logo.png

# To add assets to your application, add an assets section, like this:
# assets:
Expand Down

0 comments on commit 0ef54fc

Please sign in to comment.