ntp_logo 0.0.1 copy "ntp_logo: ^0.0.1" to clipboard
ntp_logo: ^0.0.1 copied to clipboard

A customizable component for displaying the NETOPIA Payments logo with dynamic color and version options.

NTPLogo #

A customizable component for displaying the NETOPIA Payments logo with dynamic color and version options.

Usage #

class SampleItemDetailsView extends StatelessWidget {
  const SampleItemDetailsView({super.key});

  static const routeName = '/sample_item';

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Item Details'),
      ),
      body: NTPLogo(bgColor: '#000', version: 'horizontal', secret: 'your secret key'),
    );
  }
}

Props #

The NTPLogo component accepts the following props:

  • bgColor (optional): The color of the background where the logo will be placed, can be HEX or RGB. Defaults to #ffffff.
  • version (optional): Logo version, either 'vertical' or 'horizontal'. Default is 'vertical'.
  • secret (required): Your secret key for the logo. Log in into your NETOPIA Payments account to obtain the secret key. If not provided, an error message will be displayed.

License #

This project is licensed under the MIT License - see the [LICENSE] file for details.

Author #

Created by NETOPIA

2
likes
130
points
31
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable component for displaying the NETOPIA Payments logo with dynamic color and version options.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_svg, url_launcher

More

Packages that depend on ntp_logo