From 6aa12a0302464e5a79d6cbf8d503dd3cefd9eceb Mon Sep 17 00:00:00 2001 From: niloysikdar Date: Sun, 2 May 2021 07:56:53 +0530 Subject: [PATCH] Added Toast Message --- lib/screens/homescreen.dart | 13 ++++++++++++- pubspec.lock | 7 +++++++ pubspec.yaml | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/lib/screens/homescreen.dart b/lib/screens/homescreen.dart index 18aeabd..982fc93 100644 --- a/lib/screens/homescreen.dart +++ b/lib/screens/homescreen.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:fluttertoast/fluttertoast.dart'; import 'package:plaso_connect/constants/colors.dart'; import 'package:plaso_connect/screens/selectoxygen.dart'; import 'package:plaso_connect/screens/selectplasma.dart'; @@ -58,7 +59,17 @@ class HomeScreen extends StatelessWidget { ), homeButton( text: "More", - onTap: () {}, + onTap: () { + Fluttertoast.showToast( + msg: "Coming Soon", + toastLength: Toast.LENGTH_SHORT, + gravity: ToastGravity.BOTTOM, + timeInSecForIosWeb: 1, + backgroundColor: Colors.red, + textColor: Colors.white, + fontSize: 18.0, + ); + }, ), ], ), diff --git a/pubspec.lock b/pubspec.lock index 4155791..2878646 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -170,6 +170,13 @@ packages: description: flutter source: sdk version: "0.0.0" + fluttertoast: + dependency: "direct main" + description: + name: fluttertoast + url: "https://pub.dartlang.org" + source: hosted + version: "8.0.6" google_fonts: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index e12779d..645054e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -31,6 +31,7 @@ dependencies: firebase_auth: ^1.1.2 cloud_firestore: ^1.0.7 carousel_slider: ^4.0.0-nullsafety.0 + fluttertoast: ^8.0.6 # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons.