Skip to content

The official seats.io Flutter library

License

Notifications You must be signed in to change notification settings

seatsio/seatsio-flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Seats.io Flutter SDK

Introduction

seatsio-flutter allows rendering seats.io seating charts inside a Flutter application.

Usage

Installation

Add seatsio_flutter as a dependency in your pubspec.yaml file.

Minimal

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

class SmallTheatreMinimal extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: Text("Minimal example")),
        body: SeatsioSeatingChart(
            config: SeatingChartConfig((b) => b
              ..workspaceKey = "<your workspace key>"
              ..event = "<your event key>")));
  }
}

Unsupported features

  • Renderer prompts API
  • Event manager

Development

regenerating .g.dart files

dart run build_runner build

Running the example on macOS

cd example
open -a Simulator
flutter pub get
flutter run

Running the example on an Android Emulator

cd example
emulator -list-avds
emulator -avd <avd_name>
flutter devices
flutter run -d <device_id>

Running the example on flutter-Web

Not supported

Releasing

  1. Run https://github.com/seatsio/seatsio-flutter/actions/workflows/bumpVersion.yml
  2. Run https://github.com/seatsio/seatsio-flutter/actions/workflows/publish.yml on the tag that was just created

Credits

This SDK was inspired by https://github.com/SongJiaqiang/seatsio-flutter.