Flutter Login UI With Sweet Alert
Apr 1, 2022
This tutorial is a step-by-step guide to building a Flutter app that integrates login and registration features.
Package :
dev_dependencies:
sweetalert: ^0.0.1
Import File
import 'package:sweetalert/sweetalert.dart';
Sweet Alert Dialog Flutter
InkWell(
onTap: (){
SweetAlert.show(context,
title: "Login Success !",
subtitle: "Congratulations",
style: SweetAlertStyle.success);
},
child: Container(
height: 50,
margin: EdgeInsets.symmetric(horizontal: 50),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(50),
color: Colors.amber[900]),
child: Center(
child: Text(
"Login",
style: TextStyle(
color: Colors.white,
fontSize: 20,
fontWeight: FontWeight.bold),
),
),
),
),