changed login button

This commit is contained in:
Kima 2024-08-14 12:32:32 +02:00
parent 0f08400d63
commit d70f92d4e5

View File

@ -218,15 +218,8 @@ class LoginScreenState extends State<LoginScreen> {
child: Padding( child: Padding(
padding: const EdgeInsets.symmetric( padding: const EdgeInsets.symmetric(
horizontal: 16), horizontal: 16),
child: FilledButton( child: GestureDetector(
style: ButtonStyle( onTap: () {
shape: WidgetStateProperty.all<
RoundedRectangleBorder>(
const RoundedRectangleBorder(
borderRadius: BorderRadius.all(
Radius.circular(12)),
))),
onPressed: () {
final NavigatorState navigator = final NavigatorState navigator =
Navigator.of(context); Navigator.of(context);
navigator navigator
@ -247,15 +240,58 @@ class LoginScreenState extends State<LoginScreen> {
} }
}); });
}, },
child: Text( child: Container(
"login".i18n, width:
MediaQuery.of(context).size.width *
0.75,
height: 50.0,
decoration: BoxDecoration(
// image: const DecorationImage(
// image:
// AssetImage('assets/images/btn_kreten_login.png'),
// fit: BoxFit.scaleDown,
// ),
borderRadius:
BorderRadius.circular(12.0),
color: const Color(0xFF0097C1),
),
padding: const EdgeInsets.only(
top: 5.0,
left: 5.0,
right: 5.0,
bottom: 5.0),
child: Row(
mainAxisAlignment:
MainAxisAlignment.center,
children: [
Image.asset(
'assets/images/btn_kreten_login.png',
),
const SizedBox(
width: 10.0,
),
Container(
width: 1.0,
height: 30.0,
color: Colors.white,
),
const SizedBox(
width: 10.0,
),
Text(
'login_w_kreta_acc'.i18n,
textAlign: TextAlign.center,
style: const TextStyle( style: const TextStyle(
fontFamily: 'Montserrat', color: Colors.white,
fontSize: 20, fontWeight: FontWeight.bold,
fontWeight: FontWeight.w700), fontSize: 15.0,
),
),
],
)), )),
), ),
), ),
),
const SizedBox(height: 8), const SizedBox(height: 8),
], ],
), ),