integrated share plus package
This commit is contained in:
@@ -7,6 +7,7 @@ import 'package:citycards_customer/common_packages/custom_text.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:share_plus/share_plus.dart';
|
||||
import '../../core/route_constants.dart';
|
||||
|
||||
class AttractionDetailsView extends StatelessWidget {
|
||||
@@ -98,12 +99,16 @@ class AttractionDetailsView extends StatelessWidget {
|
||||
right: 17.w,
|
||||
child: GestureDetector(
|
||||
onTap: () {
|
||||
showModalBottomSheet(
|
||||
context: context,
|
||||
isScrollControlled: true,
|
||||
backgroundColor: Colors.transparent,
|
||||
builder: (context) => const ShareBottomSheet(),
|
||||
Share.share(
|
||||
'Check out my City Card app!',
|
||||
subject: 'City Card App',
|
||||
);
|
||||
// showModalBottomSheet(
|
||||
// context: context,
|
||||
// isScrollControlled: true,
|
||||
// backgroundColor: Colors.transparent,
|
||||
// builder: (context) => const ShareBottomSheet(),
|
||||
// );
|
||||
},
|
||||
child: Container(
|
||||
height: 36.h,
|
||||
|
||||
@@ -5,7 +5,6 @@ class AttractionDetailsViewModel {
|
||||
// 📞 Call method
|
||||
Future<void> makePhoneCall(String phoneNumber, BuildContext context) async {
|
||||
final Uri url = Uri(scheme: 'tel', path: phoneNumber);
|
||||
|
||||
if (await canLaunchUrl(url)) {
|
||||
await launchUrl(url);
|
||||
} else {
|
||||
|
||||
@@ -4,6 +4,7 @@ import 'package:citycards_customer/common_packages/custom_bullet_points.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:share_plus/share_plus.dart';
|
||||
|
||||
class OfferPassDetailView extends StatelessWidget {
|
||||
const OfferPassDetailView({super.key});
|
||||
@@ -91,12 +92,16 @@ class OfferPassDetailView extends StatelessWidget {
|
||||
right: 17.w,
|
||||
child: GestureDetector(
|
||||
onTap: () {
|
||||
showModalBottomSheet(
|
||||
context: context,
|
||||
isScrollControlled: true,
|
||||
backgroundColor: Colors.transparent,
|
||||
builder: (context) => const ShareBottomSheet(),
|
||||
Share.share(
|
||||
'Check out my City Card app!',
|
||||
subject: 'City Card App',
|
||||
);
|
||||
// showModalBottomSheet(
|
||||
// context: context,
|
||||
// isScrollControlled: true,
|
||||
// backgroundColor: Colors.transparent,
|
||||
// builder: (context) => const ShareBottomSheet(),
|
||||
// );
|
||||
},
|
||||
child: Container(
|
||||
height: 36.h,
|
||||
|
||||
Reference in New Issue
Block a user