From 34f345c237486351565d6104afa297cf32345f23 Mon Sep 17 00:00:00 2001 From: Muhammad Hamza Date: Sun, 10 Oct 2021 10:54:47 +0500 Subject: [PATCH] invites view added --- .../views/invitations/invitation_view.dart | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 packages/simplex_app/lib/views/invitations/invitation_view.dart diff --git a/packages/simplex_app/lib/views/invitations/invitation_view.dart b/packages/simplex_app/lib/views/invitations/invitation_view.dart new file mode 100644 index 0000000000..02e45166f7 --- /dev/null +++ b/packages/simplex_app/lib/views/invitations/invitation_view.dart @@ -0,0 +1,50 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_svg/svg.dart'; +import 'package:simplex_chat/constants.dart'; + +class Invitations extends StatelessWidget { + const Invitations({Key? key}) : super(key: key); + + @override + Widget build(BuildContext context) { + return Container( + color: Colors.white, + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 15.0, vertical: 20.0), + child: Column( + children: [ + Align( + alignment: Alignment.centerRight, + child: SvgPicture.asset( + 'assets/logo.svg', + height: 40.0, + ), + ), + const SizedBox(height: 15.0), + Row( + children: const [ + Icon(Icons.inventory_outlined, color: kPrimaryColor), + SizedBox(width: 8.0), + Text( + 'Invitations', + style: kHeadingStyle, + ) + ], + ), + const SizedBox(height: 5.0), + SizedBox( + height: MediaQuery.of(context).size.height * 0.7, + child: const Center( + child: Text( + "You don't have any invitations yet!", + style: kMediumHeadingStyle, + textAlign: TextAlign.center, + ), + ), + ) + ], + ), + ), + ); + } +}