Changes to be committed:

new file:   lib/assets/logos/banner-varejo.jpg
	new file:   lib/assets/logos/logo_tecban.png
	modified:   lib/assets/theme/colors.dart
	modified:   lib/src/app/auth/screens/login.dart
	modified:   lib/src/app/base/screens/splash.dart
	modified:   lib/src/app/home/screens/home_screen.dart
	modified:   lib/src/app/home/widgets/card_info_card.dart
This commit is contained in:
steeve 2024-02-05 22:32:23 -03:00
parent 5010d23cb3
commit f179ff57ca
7 changed files with 97 additions and 126 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -4,8 +4,8 @@ import 'package:flutter/material.dart';
class AppColorLight { class AppColorLight {
// Highlight // Highlight
static Color primaryColor = Color(0xFF1D7773); static Color primaryColor = Color(0xFFE53935);
static Color secondaryColor = const Color(0xffF7941E); static Color secondaryColor = const Color(0xff5E6278);
static Color backgroundColor = const Color(0xffffffff); static Color backgroundColor = const Color(0xffffffff);
static Color scaffoldBackgroundColor = const Color(0xffF5F8FA); static Color scaffoldBackgroundColor = const Color(0xffF5F8FA);
static Color redExcluir = Colors.red; static Color redExcluir = Colors.red;

View File

@ -48,12 +48,11 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
return Scaffold( return Scaffold(
key: _scaffoldKey, key: _scaffoldKey,
extendBodyBehindAppBar: true, extendBodyBehindAppBar: true,
appBar: const PreferredSize(child: SizedBox(), preferredSize: Size.fromHeight(0)), appBar: const PreferredSize(child: const SizedBox(), preferredSize: Size.fromHeight(0)),
body: SingleChildScrollView( body: SingleChildScrollView(
child: Container( child: Container(
decoration: BoxDecoration( decoration: const BoxDecoration(
color: Theme.of(context).primaryColor, image: DecorationImage(
image: const DecorationImage(
image: AssetImage('lib/assets/images/bg_header.png'), image: AssetImage('lib/assets/images/bg_header.png'),
fit: BoxFit.cover, fit: BoxFit.cover,
) )
@ -62,11 +61,11 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
children: [ children: [
const SizedBox(height: 25), const SizedBox(height: 25),
SizedBox( SizedBox(
height: Metrics.height(context)/3, height: Metrics.height(context)/1.5,
child: Center( child: Center(
child: SizedBox( child: SizedBox(
child: Image.asset( child: Image.asset(
'lib/assets/logos/logo_letra_branca.png', 'lib/assets/logos/logo_tecban.png',
fit: BoxFit.fill, fit: BoxFit.fill,
width: 250 width: 250
) )
@ -79,7 +78,7 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
topRight: radius topRight: radius
), ),
child: Container( child: Container(
padding: const EdgeInsets.symmetric(horizontal: 35), padding: const EdgeInsets.symmetric(horizontal: 20),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Theme.of(context).scaffoldBackgroundColor color: Theme.of(context).scaffoldBackgroundColor
), ),
@ -88,11 +87,11 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
child: Center( child: Center(
child: Column( child: Column(
children: [ children: [
const SizedBox(height: 30), const SizedBox(height: 15),
SizedBox( SizedBox(
width: double.infinity, width: double.infinity,
child: Text( child: Text(
"Fazer Login", "Bem-vindo de volta",
textAlign: TextAlign.start, textAlign: TextAlign.start,
style: Theme.of(context).textTheme.bodyMedium?.copyWith( style: Theme.of(context).textTheme.bodyMedium?.copyWith(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
@ -109,34 +108,6 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
controller: emailController, controller: emailController,
validator: true, validator: true,
), ),
const SizedBox(height: 30),
PasswordInput(
title: 'Senha',
hintText: 'Informe sua senha',
controller: senhaController,
validator: true,
onFieldSubmitted: (value) {
// onTapLogin();
}
),
const SizedBox(height: 20),
InkWell(
onTap: (){
},
child: SizedBox(
width: double.infinity,
child: Text(
'Esqueceu a senha?',
textAlign: TextAlign.end,
style: Theme.of(context).textTheme.bodyLarge?.copyWith(
fontWeight: FontWeight.w400,
decoration: TextDecoration.underline,
color: Theme.of(context).primaryColor,
fontSize: AppFontSize.fontSize15
)
)
),
),
const SizedBox(height: 20), const SizedBox(height: 20),
ButtonWidget( ButtonWidget(
label: 'Fazer login', label: 'Fazer login',
@ -145,14 +116,6 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
context.push(HomeScreen.path); context.push(HomeScreen.path);
} }
), ),
const SizedBox(height: 20),
ButtonWidget(
label: 'Não possui conta? Cadastre-se',
type: TypeButton.secondary,
onTap: (){
context.push(CadastroScreen.path);
}
),
const SizedBox(height: 30), const SizedBox(height: 30),
] ]
) )

View File

@ -48,7 +48,7 @@ class _SlapshScreenState extends ConsumerState<SlapshScreen> {
children: [ children: [
SizedBox( SizedBox(
child: Image.asset( child: Image.asset(
'lib/assets/logos/logo_branca.png', 'lib/assets/logos/logo_tecban.png',
width: 200, width: 200,
fit: BoxFit.fill fit: BoxFit.fill
) )

View File

@ -22,7 +22,7 @@ class _HomeScreenState extends State<HomeScreen> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
Radius radius = const Radius.circular(30); Radius radius = const Radius.circular(0);
return Scaffold( return Scaffold(
key: _scaffoldKey, key: _scaffoldKey,
extendBodyBehindAppBar: true, extendBodyBehindAppBar: true,
@ -115,18 +115,18 @@ class _HomeScreenState extends State<HomeScreen> {
child: Column( child: Column(
children: [ children: [
const SizedBox(height: 15), const SizedBox(height: 15),
SizedBox( // SizedBox(
width: double.infinity, // width: double.infinity,
child: Text( // child: Text(
"Escolha o segmento desejado", // "Escolha o segmento desejado",
textAlign: TextAlign.start, // textAlign: TextAlign.start,
style: Theme.of(context).textTheme.bodyMedium?.copyWith( // style: Theme.of(context).textTheme.bodyMedium?.copyWith(
fontWeight: FontWeight.w600, // fontWeight: FontWeight.w600,
color: AppColorLight.text02Color, // color: AppColorLight.text02Color,
fontSize: 20 // fontSize: 20
) // )
) // )
), // ),
// SizedBox( // SizedBox(
// width: double.infinity, // width: double.infinity,
// child: Text( // child: Text(
@ -140,41 +140,21 @@ class _HomeScreenState extends State<HomeScreen> {
// ) // )
// ), // ),
// const SizedBox(height: 20), // const SizedBox(height: 20),
// SearchInput( SearchInput(
// hintText: 'Pesquisar', hintText: 'Pesquisar',
// showIcon: true, showIcon: true,
// prefixIcon: Feather.search, prefixIcon: Feather.search,
// textInputType: TextInputType.text, textInputType: TextInputType.text,
// textInputAction: TextInputAction.search, textInputAction: TextInputAction.search,
// onFieldSubmitted: (value) async { onFieldSubmitted: (value) async {
// } }
// ),
const SizedBox(height: 20),
Row(
children: [
CardInfoCardV2Widget(
svg: 'lib/assets/images/image_05.jpeg',
title: 'Inseticida',
onTap: (){
context.push(CategoriaScreen.path, extra: 'Algodão');
},
),
SizedBox(width: 20),
CardInfoCardWidget(
svg: 'lib/assets/images/masculino.png',
title: 'Herbicida',
onTap: (){
context.push(CategoriaScreen.path, extra: 'Café');
}
)
]
), ),
const SizedBox(height: 20), const SizedBox(height: 20),
Row( Row(
children: [ children: [
CardInfoCardWidget( CardInfoCardWidget(
svg: 'lib/assets/images/masculino.png', svg: 'lib/assets/images/masculino.png',
title: 'Fungicida', title: 'Diebold',
onTap: (){ onTap: (){
context.push(CategoriaScreen.path, extra: 'Cana'); context.push(CategoriaScreen.path, extra: 'Cana');
}, },
@ -182,9 +162,9 @@ class _HomeScreenState extends State<HomeScreen> {
SizedBox(width: 20), SizedBox(width: 20),
CardInfoCardWidget( CardInfoCardWidget(
svg: 'lib/assets/images/masculino.png', svg: 'lib/assets/images/masculino.png',
title: 'Nutrição foliar', title: 'NCR',
onTap: (){ onTap: (){
context.push(CategoriaScreen.path, extra: 'Milho'); // context.push(CategoriaScreen.path, extra: 'Café');
} }
) )
] ]
@ -194,22 +174,41 @@ class _HomeScreenState extends State<HomeScreen> {
children: [ children: [
CardInfoCardWidget( CardInfoCardWidget(
svg: 'lib/assets/images/masculino.png', svg: 'lib/assets/images/masculino.png',
title: 'Tecnologia de Aplicação', title: 'Finger',
onTap: (){ onTap: (){
context.push(CategoriaScreen.path, extra: 'Soja'); context.push(CategoriaScreen.path, extra: 'Cana');
}, },
), ),
// SizedBox(width: 20), SizedBox(width: 20),
// CardInfoCardWidget( CardInfoCardWidget(
// svg: 'lib/assets/images/trigo.png', svg: 'lib/assets/images/masculino.png',
// title: 'Trigo', title: 'Palm',
// onTap: (){ onTap: (){
// context.push(CategoriaScreen.path, extra: 'Trijo'); // context.push(CategoriaScreen.path, extra: 'Milho');
// } }
// ) )
] ]
), ),
const SizedBox(height: 20), const SizedBox(height: 20),
Row(
children: [
CardInfoCardWidget(
svg: 'lib/assets/images/masculino.png',
title: 'Inoperante',
onTap: (){
context.push(CategoriaScreen.path, extra: 'Cana');
},
),
SizedBox(width: 20),
CardInfoCardWidget(
svg: 'lib/assets/images/masculino.png',
title: 'Inoperante',
onTap: (){
// context.push(CategoriaScreen.path, extra: 'Milho');
}
)
]
),
const SizedBox(height: 20), const SizedBox(height: 20),
] ]
), ),

View File

@ -1,4 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_font_icons/flutter_font_icons.dart';
import 'package:tacban/assets/theme/colors.dart'; import 'package:tacban/assets/theme/colors.dart';
class CardInfoCardWidget extends StatelessWidget { class CardInfoCardWidget extends StatelessWidget {
@ -14,7 +15,7 @@ class CardInfoCardWidget extends StatelessWidget {
onTap: onTap, onTap: onTap,
radius: 0, radius: 0,
child: Container( child: Container(
height: 200, height: 150,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.circular(18), borderRadius: BorderRadius.circular(18),
@ -27,31 +28,39 @@ class CardInfoCardWidget extends StatelessWidget {
) )
] ]
), ),
child: Column( child: Padding(
mainAxisAlignment: MainAxisAlignment.center, padding: const EdgeInsets.symmetric(horizontal: 20),
children: [ child: Column(
SizedBox( mainAxisAlignment: MainAxisAlignment.center,
child: Image.asset( crossAxisAlignment: CrossAxisAlignment.start,
svg, children: [
fit: BoxFit.fill CircleAvatar(
) radius: 30,
), child: Icon(Feather.key, color: Colors.white, size: 30,),
const SizedBox(height: 10),
Text(title,
style: Theme.of(context).textTheme.bodySmall?.copyWith(
fontWeight: FontWeight.bold,
color: AppColorLight.primaryColor,
fontSize: 15
), ),
), // SizedBox(
const SizedBox(height: 5), // child: Image.asset(
Text('Maurício P. Batistella Pasini', // svg,
style: Theme.of(context).textTheme.bodySmall?.copyWith( // fit: BoxFit.fill
fontWeight: FontWeight.w200, // )
fontSize: 11 // ),
const SizedBox(height: 20),
Text(title,
style: Theme.of(context).textTheme.bodySmall?.copyWith(
fontWeight: FontWeight.bold,
color: AppColorLight.primaryColor,
fontSize: 20
),
), ),
) const SizedBox(height: 5),
], // Text('Maurício P. Batistella Pasini',
// style: Theme.of(context).textTheme.bodySmall?.copyWith(
// fontWeight: FontWeight.w200,
// fontSize: 11
// ),
// )
],
),
), ),
), ),
) )