Skip to content

Freshfield SDK for displaying update in your Flutter app.

License

freshfieldio/flutter_sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🥕 Freshfield Flutter SDK

Official Flutter SDK package for integrating Freshfield updates. This SDK allows you to fetch and display updates from your Freshfield dashboard directly in your Flutter app.

Since freshfield is in the early stages of development, we recommend you to take a look at an example implementation. example/lib/main.dart.

Installation

Add to your pubspec.yaml file:

dependencies:
  freshfield:
    git:
      url: https://github.com/freshfieldio/flutter_sdk

Basic Usage

Initialize the Freshfield service and fetch updates in your Flutter application:

import 'package:freshfield/freshfield.dart';

// Initialize the service
final freshfield = FreshfieldService();
freshfield.init('YOUR_API_KEY');

// Get updates
final updates = await freshfield.getUpdates(limit: 5, offset: 0);

API Reference

Methods

  • init(String apiKey): Initialize the service with your API key.
  • getUpdates({int limit = 10, int offset = 0}): Fetch updates with pagination support

Update Model

The Update model contains the following fields:

  • id: String
  • title: String
  • description: String
  • created: DateTim
  • features: List

Feature Model

The Feature model contains:

  • name: String
  • description: String
  • type: String
  • icon: String? - (SVG icon string, check example/lib/main.dart for svg render)

License

MIT

About

Freshfield SDK for displaying update in your Flutter app.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published