printful 1.0.27 copy "printful: ^1.0.27" to clipboard
printful: ^1.0.27 copied to clipboard

A Flutter plugin for seamless integration with the Printful API. Manage products, orders, shipping rates, and tracking directly in your Flutter apps with native Android & iOS support. Perfect for buil [...]

πŸ“¦ Printful Flutter Plugin #

pub package license platform

A Flutter plugin for integrating with the Printful API.
Easily manage products, orders, and shipping in your Flutter app with native Android/iOS support.


πŸš€ Features #

  • πŸ”‘ Authentication β€” Connect with your Printful account via API Key.(Auto save token and refresh token)
  • πŸ“¦ Product Management β€” Fetch product catalog, variants, and details.
  • πŸ›’ Order Handling β€” Create and manage orders directly from your app.
  • 🚚 Shipping Rates β€” Retrieve live shipping estimates.
  • πŸ“Š Order Tracking β€” Get real-time shipment tracking updates.

πŸ“₯ Installation #

Add this line to your pubspec.yaml:

dependencies:
  printful: ^latest

Run flutter pub get to install the plugin into your app.


πŸ“ Usage #

Import the package:

import 'package:printful/printful.dart';

Use Private key or set Bearer token:

Printful.instance.setBearerToken;

Public App authorization:


<activity
        android:name="com.linusu.flutter_web_auth_2.CallbackActivity"
        android:exported="true"
        android:taskAffinity="">
  <intent-filter android:label="flutter_web_auth_2">
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data android:scheme="YOUR_SCHEME" />
  </intent-filter>
</activity>
<key>CFBundleURLTypes</key>
 <array>
   <dict>
     <key>CFBundleTypeRole</key>
     <string>Editor</string>
     <key>CFBundleURLName</key>
     <string>com.example.abc</string>
     <key>CFBundleURLSchemes</key>
     <array>
       <string>YOUR_SCHEME</string>
     </array>
   </dict>
</array>

required call [Printful.instance.configPublicApp] earlier

Printful.instance.OAUTH_API.authorize;

Printful.instance.setHeaderStoreId;
Printful.instance.OAUTH_API;
Printful.instance.ORDER_API;
Printful.instance.CATALOG_API;
Printful.instance.PRODUCT_API;
Printful.instance.PRODUCT_TEMPLATE_API;
Printful.instance.FILE_LIBRARY_API;
Printful.instance.SHIPPING_RATE_API;
Printful.instance.COUNTRY_API;
Printful.instance.TAX_RATE_API;
Printful.instance.STORE_INFORMATION_API;
Printful.instance.WAREHOUSE_PRODUCT_API;

πŸ“„ License #

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


πŸ’‘ Contributing #

Contributions are welcome!
Feel free to open an issue or submit a pull request.


πŸ“š Resources #

1
likes
135
points
884
downloads

Publisher

verified publishermgorki.id.vn

Weekly Downloads

A Flutter plugin for seamless integration with the Printful API. Manage products, orders, shipping rates, and tracking directly in your Flutter apps with native Android & iOS support. Perfect for building custom e-commerce, print-on-demand, or dropshipping solutions.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSL-1.0 (license)

Dependencies

dio, flutter, flutter_secure_storage, flutter_web_auth_2, get_it, json_annotation, logger, retrofit

More

Packages that depend on printful