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:
parent
5010d23cb3
commit
f179ff57ca
BIN
lib/assets/logos/banner-varejo.jpg
Normal file
BIN
lib/assets/logos/banner-varejo.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 142 KiB |
BIN
lib/assets/logos/logo_tecban.png
Normal file
BIN
lib/assets/logos/logo_tecban.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
@ -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;
|
||||||
|
@ -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),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
@ -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
|
||||||
)
|
)
|
||||||
|
@ -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),
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
|
@ -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,33 +28,41 @@ class CardInfoCardWidget extends StatelessWidget {
|
|||||||
)
|
)
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 20),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
CircleAvatar(
|
||||||
child: Image.asset(
|
radius: 30,
|
||||||
svg,
|
child: Icon(Feather.key, color: Colors.white, size: 30,),
|
||||||
fit: BoxFit.fill
|
|
||||||
)
|
|
||||||
),
|
),
|
||||||
const SizedBox(height: 10),
|
// SizedBox(
|
||||||
|
// child: Image.asset(
|
||||||
|
// svg,
|
||||||
|
// fit: BoxFit.fill
|
||||||
|
// )
|
||||||
|
// ),
|
||||||
|
const SizedBox(height: 20),
|
||||||
Text(title,
|
Text(title,
|
||||||
style: Theme.of(context).textTheme.bodySmall?.copyWith(
|
style: Theme.of(context).textTheme.bodySmall?.copyWith(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
color: AppColorLight.primaryColor,
|
color: AppColorLight.primaryColor,
|
||||||
fontSize: 15
|
fontSize: 20
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 5),
|
const SizedBox(height: 5),
|
||||||
Text('Maurício P. Batistella Pasini',
|
// Text('Maurício P. Batistella Pasini',
|
||||||
style: Theme.of(context).textTheme.bodySmall?.copyWith(
|
// style: Theme.of(context).textTheme.bodySmall?.copyWith(
|
||||||
fontWeight: FontWeight.w200,
|
// fontWeight: FontWeight.w200,
|
||||||
fontSize: 11
|
// fontSize: 11
|
||||||
),
|
// ),
|
||||||
)
|
// )
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user