slaba_pro 0.0.1+4 copy "slaba_pro: ^0.0.1+4" to clipboard
slaba_pro: ^0.0.1+4 copied to clipboard

Just testing how Flutter packages works :(

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key}) : super(key: key);

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

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        elevation: 0,
        title: const Text('Plugin example app'),
      ),
      body: Center(
        child: TextButton(
          onPressed: () {
            OneAppPlugin().getPaymentUI(
              context,
              amount: 3400,
              email: 'samuel@obounce.net',
              currency: 'NGN',
              firstName: 'Opeyemi',
              lastName: 'Paul',
              phoneNumber: '08033456789',
              secretKey: '',
            );
          },
          child: const Text('Place Order Now!'),
        ),
      ),
    );
  }
}
1
likes
140
pub points
0%
popularity

Publisher

verified publisher1app.online

Just testing how Flutter packages works :(

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on slaba_pro