ntp_logo 0.0.1
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