Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void _showBottomView() {
- showModalBottomSheet(
- context: context,
- backgroundColor: Colors.white,
- useSafeArea: true,
- isDismissible: false,
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.only(
- topLeft: Radius.circular(24),
- topRight: Radius.circular(24),
- ),
- ),
- builder: (ctx) {
- return StatefulBuilder(
- builder: (
- BuildContext context,
- void Function(void Function()) changeState,
- ) {
- return Container(
- margin: const EdgeInsets.fromLTRB(16, 20, 16, 12),
- child: Column(
- children: [
- Icon(
- Icons.verified_user,
- size: 50,
- color: ProjectColors.primaryColor,
- ),
- ElevatedButton(
- style: ButtonStyle(
- backgroundColor: WidgetStateProperty.all(
- ProjectColors.primaryColor,
- ),
- padding: WidgetStateProperty.all(EdgeInsets.all(8)),
- shape: WidgetStatePropertyAll(
- RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(10),
- ),
- ),
- ),
- onPressed: () {
- Navigator.of(context).pop();
- Navigator.pushReplacementNamed(
- context,
- guestHomePage,
- arguments: 3,
- );
- },
- child: Row(
- mainAxisAlignment: MainAxisAlignment.center,
- spacing: 6,
- children: [
- SvgPicture.asset(
- "assets/images/ic_login.svg",
- height: 24,
- width: 24,
- colorFilter: ColorFilter.mode(
- ProjectColors.white,
- BlendMode.srcIn,
- ),
- ),
- Text(
- CustomStrings.login,
- style: GoogleFonts.poppins(
- fontWeight: FontWeight.w500,
- fontSize: 16,
- color: ProjectColors.white,
- ),
- ),
- ],
- ),
- ),
- ],
- ),
- );
- },
- );
- },
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement