This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| debugShowCheckedModeBanner: false, | |
| home: Scaffold( | |
| appBar: AppBar(title: Text("Watermark Example"),), | |
| body: Center( | |
| child: Column( | |
| children: <Widget>[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:io'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:dospace/dospace.dart' as dospace; | |
| import 'package:file_picker/file_picker.dart'; | |
| class DOSpacesFileUpload extends StatefulWidget { | |
| @override | |
| _DOSpacesFileUploadState createState() => _DOSpacesFileUploadState(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/cupertino.dart'; | |
| import 'PaypalPayment.dart'; | |
| class makePayment extends StatefulWidget { | |
| @override | |
| _makePaymentState createState() => _makePaymentState(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:http/http.dart' as http; | |
| import 'dart:async'; | |
| import 'dart:convert' as convert; | |
| import 'package:http_auth/http_auth.dart'; | |
| class PaypalServices { | |
| String domain = "https://api.sandbox.paypal.com"; // for sandbox mode | |
| // String domain = "https://api.paypal.com"; // for production mode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:core'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:shared_preferences/shared_preferences.dart'; | |
| import 'package:webview_flutter/webview_flutter.dart'; | |
| import 'PaypalServices.dart'; | |
| class PaypalPayment extends StatefulWidget { | |
| final Function onFinish; | |
| PaypalPayment({this.onFinish}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| getWindow().addFlags(LayoutParams.FLAG_SECURE); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @implementation AppDelegate | |
| - (BOOL)application:(UIApplication *)application | |
| didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
| [GeneratedPluginRegistrant registerWithRegistry:self]; | |
| // Override point for customization after application launch. | |
| return [super application:application didFinishLaunchingWithOptions:launchOptions]; | |
| } | |
| - (void)applicationWillResignActive:(UIApplication *)application{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MyHomePage extends StatefulWidget { | |
| @override | |
| _MyHomePageState createState() => _MyHomePageState(); | |
| } | |
| class _MyHomePageState extends State<MyHomePage> { | |
| Future<void> secureScreen() async { | |
| await FlutterWindowManager.addFlags(FlutterWindowManager.FLAG_SECURE); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:upi_pay/upi_pay.dart'; | |
| class UpiPayment extends StatefulWidget { | |
| @override | |
| _UpiPaymentState createState() => _UpiPaymentState(); | |
| } | |
| class _UpiPaymentState extends State<UpiPayment> { |
NewerOlder