flutter_tappay 0.3.0+2 icon indicating copy to clipboard operation
flutter_tappay: ^0.3.0+2 copied to clipboard

Platform specific solution for tappay in flutter. It's still in progress. Currently, Direct pay only.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:flutter_tappay/flutter_tappay.dart';
import 'package:flutter_tappay_example/tappay_android_way.dart';
import 'package:flutter_tappay_example/tappay_flutter_way.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: HomePage()
    );
  }
}

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Plugin example app'),
      ),
      body: Center(
          child: Column(
            children: <Widget>[
              FlatButton(
                child: Text("Native way"),
                onPressed: (){
                  Navigator.of(context).push(
                      new MaterialPageRoute(
                          builder: (context) {
                            return TappayAndroidScreen();
                          }
                      ));
                },
              ),
              FlatButton(
                child: Text("Flutter way"),
                onPressed: (){
                  Navigator.of(context).push(
                      new MaterialPageRoute(
                          builder: (context) {
                            return TappayFlutterScreen();
                          }
                      ));
                },
              )
            ],
          )
      ),
    );
  }
}
2
likes
110
pub points
0%
popularity

Publisher

verified publisher icondowen.idv.tw

Platform specific solution for tappay in flutter. It's still in progress. Currently, Direct pay only.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_tappay