make login button

This commit is contained in:
zypherift 2024-05-01 23:34:17 +02:00
parent bd30a77fc2
commit ca544082ba

View File

@ -1,5 +1,6 @@
// import 'dart:async'; // import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import 'package:refilc/api/client.dart'; import 'package:refilc/api/client.dart';
import 'package:refilc/api/login.dart'; import 'package:refilc/api/login.dart';
@ -204,11 +205,52 @@ class LoginScreenState extends State<LoginScreen> {
], ],
), ),
Container( Container(
height: 250, height: 250,
width: 250, width: double.infinity,
decoration: const BoxDecoration( decoration: const BoxDecoration(
color: Color.fromARGB(255, 107, 107, 107)), gradient: LinearGradient(
child: Text('aASDIAKSNLD')) colors: [Color(0x00DAE4F7), Color(0xFFDAE4F7)],
stops: [0, 0.1],
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
),
),
child: Padding(
padding: const EdgeInsets.only(top: 3),
child: Column(
children: [
SizedBox(
height: 48,
width: double.infinity,
child: Padding(
padding: const EdgeInsets.symmetric(
horizontal: 16),
child: FilledButton(
style: ButtonStyle(
shape: MaterialStateProperty.all<
RoundedRectangleBorder>(
const RoundedRectangleBorder(
borderRadius:
BorderRadius.all(
Radius.circular(
12)),
side: BorderSide(
color: Colors.red)))),
onPressed: () {},
child: Text(
"login".i18n,
style: const TextStyle(
fontFamily: 'Montserrat',
fontSize: 20,
fontWeight: FontWeight.w700),
)),
),
),
const SizedBox(height: 8),
],
),
),
)
// Column( // Column(
// //login buttons and ui starts here // //login buttons and ui starts here
// mainAxisAlignment: MainAxisAlignment.end, // mainAxisAlignment: MainAxisAlignment.end,