Changes to be committed:

new file:   lib/assets/images/bg_header.png
	new file:   lib/assets/images/bg_header.svg
	new file:   lib/assets/logos/logo_branca.png
	new file:   lib/assets/logos/logo_letra_branca.png
	new file:   lib/assets/logos/logo_letra_primary.png
	new file:   lib/assets/logos/logo_primary.png
	new file:   lib/assets/logos/old/logo_branca.png
	new file:   lib/assets/logos/old/logo_primary.png
	modified:   lib/src/app/auth/screens/login.dart
	modified:   lib/src/app/base/screens/splash.dart
	modified:   lib/src/shared/widgets/buttons/simple_button.dart
	modified:   lib/src/shared/widgets/inputs/password_input.dart
	modified:   lib/src/shared/widgets/inputs/simple_input.dart
This commit is contained in:
steeve 2024-01-27 16:06:41 -03:00
parent 53da5f69dc
commit 92159f330d
13 changed files with 36 additions and 20 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

View File

@ -0,0 +1,8 @@
<svg width="375" height="340" viewBox="0 0 375 340" fill="none" xmlns="http://www.w3.org/2000/svg">
<g opacity="0.1">
<path fill-rule="evenodd" clip-rule="evenodd" d="M-147 228C-147 289.856 -95.9605 340 -33 340C29.9605 340 81 289.856 81 228C81 199.638 70.2694 173.738 52.5792 154.005C47.702 156.661 44.4951 158.667 42.6118 160.355C63.2189 176.793 76.3901 201.899 76.3901 230.031C76.3901 279.548 35.5842 319.689 -14.7523 319.689C-65.0889 319.689 -105.895 279.548 -105.895 230.031C-105.895 180.514 -65.0889 140.373 -14.7523 140.373C0.00495911 140.373 13.9431 143.823 26.2739 149.948C29.9509 145.503 32.906 142.709 37.0772 139.653C17.7452 124.831 -6.57764 116 -33 116C-95.9605 116 -147 166.144 -147 228Z" fill="white" fill-opacity="0.28"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M226.981 228C226.981 289.856 175.942 340 112.981 340C50.021 340 -1.01855 289.856 -1.01855 228C-1.01855 166.144 50.021 116 112.981 116C175.942 116 226.981 166.144 226.981 228ZM185.876 230.031C185.876 279.548 145.07 319.689 94.7338 319.689C44.3972 319.689 3.59137 279.548 3.59137 230.031C3.59137 180.514 44.3972 140.373 94.7338 140.373C145.07 140.373 185.876 180.514 185.876 230.031Z" fill="white" fill-opacity="0.2"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M103 21C103 82.8559 154.04 133 217 133C279.96 133 331 82.8559 331 21C331 -7.36219 320.269 -33.2621 302.579 -52.9948C297.702 -50.3387 294.495 -48.3325 292.612 -46.645C313.219 -30.2071 326.39 -5.1011 326.39 23.0311C326.39 72.5479 285.584 112.689 235.248 112.689C184.911 112.689 144.105 72.5479 144.105 23.0311C144.105 -26.4857 184.911 -66.6269 235.248 -66.6269C250.005 -66.6269 263.943 -63.1768 276.274 -57.0518C279.951 -61.4966 282.906 -64.2908 287.077 -67.3465C267.745 -82.1686 243.422 -91 217 -91C154.04 -91 103 -40.8559 103 21Z" fill="#303030"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M476.981 21C476.981 82.8559 425.942 133 362.981 133C300.021 133 248.981 82.8559 248.981 21C248.981 -40.8559 300.021 -91 362.981 -91C425.942 -91 476.981 -40.8559 476.981 21ZM435.876 23.0311C435.876 72.5479 395.07 112.689 344.734 112.689C294.397 112.689 253.591 72.5479 253.591 23.0311C253.591 -26.4857 294.397 -66.6269 344.734 -66.6269C395.07 -66.6269 435.876 -26.4857 435.876 23.0311Z" fill="#484848"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

View File

@ -51,9 +51,10 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
appBar: const PreferredSize(child: SizedBox(), preferredSize: Size.fromHeight(0)),
body: SingleChildScrollView(
child: Container(
decoration: const BoxDecoration(
image: DecorationImage(
image: AssetImage('lib/assets/images/bg_ouside_login.png'),
decoration: BoxDecoration(
color: Theme.of(context).primaryColor,
image: const DecorationImage(
image: AssetImage('lib/assets/images/bg_header.png'),
fit: BoxFit.cover,
)
),
@ -65,9 +66,9 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
child: Center(
child: SizedBox(
child: Image.asset(
'lib/assets/logos/splash_logo.png',
'lib/assets/logos/logo_letra_branca.png',
fit: BoxFit.fill,
width: 180
width: 200
)
)
),

View File

@ -19,7 +19,7 @@ class _SlapshScreenState extends ConsumerState<SlapshScreen> {
@override
void initState() {
Future.delayed(const Duration(seconds: 2)).then((value)async{
Future.delayed(const Duration(seconds: 3)).then((value)async{
context.go(LoginScreen.path);
});
super.initState();
@ -30,7 +30,13 @@ class _SlapshScreenState extends ConsumerState<SlapshScreen> {
return Scaffold(
key: _scaffoldKey,
backgroundColor: Theme.of(context).primaryColor,
body: SizedBox(
body: Container(
decoration: const BoxDecoration(
image: DecorationImage(
image: AssetImage('lib/assets/images/bg_header.png'),
fit: BoxFit.cover,
)
),
width: MediaQuery.of(context).size.width,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
@ -40,12 +46,13 @@ class _SlapshScreenState extends ConsumerState<SlapshScreen> {
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
// SizedBox(
// child: Image.asset(
// 'lib/assets/logos/splash_logo.png',
// fit: BoxFit.fill
// )
// ),
SizedBox(
child: Image.asset(
'lib/assets/logos/logo_letra_branca.png',
width: 300,
fit: BoxFit.fill
)
),
]
)
],

View File

@ -98,35 +98,35 @@ class _ButtonWidgetState extends State<ButtonWidget> {
if((type == TypeButton.cancel)||(type == TypeButton.secondary) && disabled){
return BoxDecoration(
border: Border.all(width: 2, color: AppColorLight.text04Color),
borderRadius: BorderRadius.circular(60)
borderRadius: BorderRadius.circular(10)
);
}
if(type == TypeButton.primary && disabled){
return BoxDecoration(
color: AppColorLight.text04Color,
borderRadius: BorderRadius.circular(60)
borderRadius: BorderRadius.circular(10)
);
}
if(type == TypeButton.cancel){
return BoxDecoration(
border: Border.all(width: 2, color: AppColorLight.text04Color),
borderRadius: BorderRadius.circular(60)
borderRadius: BorderRadius.circular(10)
);
}
if(type == TypeButton.secondary){
return BoxDecoration(
border: Border.all(width: 2, color: widget.color ?? Theme.of(context).primaryColor),
color: isHover ? widget.color ?? Theme.of(context).primaryColor : null,
borderRadius: BorderRadius.circular(60)
borderRadius: BorderRadius.circular(10)
);
}
// Default is primary
return BoxDecoration(
color: isHover ? widget.color?.withOpacity(.8) ?? Theme.of(context).primaryColor.withOpacity(.8) : widget.color ?? Theme.of(context).primaryColor,
borderRadius: BorderRadius.circular(60)
borderRadius: BorderRadius.circular(10)
);
}
}

View File

@ -43,7 +43,7 @@ class _PasswordInputState extends State<PasswordInput> {
width: 2,
color: InputUtils.getColorBorder(statusValided: statusValided, enabled: true)
),
borderRadius: BorderRadius.circular(60)
borderRadius: BorderRadius.circular(10)
),
child: TextFormField(
controller: widget.controller,

View File

@ -65,7 +65,7 @@ class _SimpleInputState extends State<SimpleInput> {
// color: widget.enabled == false ? AppColorLight.text05Color : isvalidate ? AppColorLight.text04Color : AppColorLight.erroColor
),
color: widget.enabled == false ? AppColorLight.text05Color : null,
borderRadius: BorderRadius.circular(60)
borderRadius: BorderRadius.circular(10)
),
child: TextFormField(
controller: widget.controller,