bootpay_webview_flutter_android 4.3.24 copy "bootpay_webview_flutter_android: ^4.3.24" to clipboard
bootpay_webview_flutter_android: ^4.3.24 copied to clipboard

PlatformAndroid

A Flutter plugin that provides a WebView widget on Android.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'webview_page.dart';
import 'bootpay_webview_page.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: '부트페이 Android 웹뷰 테스트'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {


  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Padding(
          padding: const EdgeInsets.symmetric(vertical: 50.0),
          child: Column(
            children: [
              TextButton(
                  onPressed: () {
                    Navigator.push(
                      context,
                      MaterialPageRoute(builder: (context) => BootpayWebviewPage()),
                    );
                  },
                  child: const Text('1. PG일반 결제 테스트', style: TextStyle(fontSize: 16.0))
              ),
              TextButton(
                  onPressed: () {
                    Navigator.push(
                      context,
                      MaterialPageRoute(builder: (context) => WebviewPage()),
                    );
                  },
                  child: const Text('2. 통합결제 테스트', style: TextStyle(fontSize: 16.0))
              ),
            ],
          ),
        ),
      ),
    );
  }
}
1
likes
135
points
753
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin that provides a WebView widget on Android.

Topics

#html #webview #webview-flutter

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

bootpay_webview_flutter_platform_interface, flutter

More

Packages that depend on bootpay_webview_flutter_android