upgrade gradle
This commit is contained in:
@@ -7,7 +7,7 @@ import 'package:fcs/pages/widgets/local_app_bar.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
import 'package:package_info/package_info.dart';
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:share/share.dart';
|
||||
import 'package:share_plus/share_plus.dart';
|
||||
|
||||
import '../../pagination/paginator_listview.dart';
|
||||
import 'invitation_create.dart';
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'package:fcs/helpers/shared_pref.dart';
|
||||
import 'package:fcs/pages/main/model/base_model.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:package_info/package_info.dart';
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
|
||||
class MainModel extends ChangeNotifier {
|
||||
final log = Logger('MainModel');
|
||||
@@ -36,7 +36,7 @@ class MainModel extends ChangeNotifier {
|
||||
|
||||
MainModel() {
|
||||
NetworkConnectivity.instance.statusStream.listen((data) {
|
||||
bool _isOnline = data["isOnline"];
|
||||
bool _isOnline = data != ConnectivityStatus.none;
|
||||
if (_isOnline && !this.isOnline) {
|
||||
_init();
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import 'package:fcs/pages/widgets/local_app_bar.dart';
|
||||
import 'package:fcs/pages/widgets/progress.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_pdfview/flutter_pdfview.dart';
|
||||
import 'package:share/share.dart';
|
||||
import 'package:share_plus/share_plus.dart';
|
||||
|
||||
class PDFScreen extends StatefulWidget {
|
||||
final String? title;
|
||||
@@ -112,8 +112,7 @@ class _PDFScreenState extends State<PDFScreen> with WidgetsBindingObserver {
|
||||
|
||||
_share() async {
|
||||
final RenderBox box = context.findRenderObject() as RenderBox;
|
||||
await Share.shareFiles([file!.path],
|
||||
mimeTypes: ["application/pdf"],
|
||||
await Share.shareXFiles([XFile(file!.path)],
|
||||
subject: "File",
|
||||
sharePositionOrigin: box.localToGlobal(Offset.zero) & box.size);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user