flutter_tether 1.4.10
flutter_tether: ^1.4.10 copied to clipboard
A command-line tool and builders for generating Supabase-related Dart code.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate flutter_tether
Use it
The package has the following executables:
$ flutter_tether
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add flutter_tether
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
flutter_tether: ^1.4.10
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_tether/config/config_loader.dart';
import 'package:flutter_tether/config/config_model.dart';
import 'package:flutter_tether/generator.dart';
import 'package:flutter_tether/generators/auth_manager_generator.dart';
import 'package:flutter_tether/generators/background_service_manager_generator.dart';
import 'package:flutter_tether/generators/client_manager_generator.dart';
import 'package:flutter_tether/generators/core_migrations_generator.dart';
import 'package:flutter_tether/generators/database_generator.dart';
import 'package:flutter_tether/generators/feed_manager_generator.dart';
import 'package:flutter_tether/generators/feed_provider_generator.dart';
import 'package:flutter_tether/generators/model_generator.dart';
import 'package:flutter_tether/generators/sqlite_schema_generator.dart';
import 'package:flutter_tether/generators/supabase_select_builder_generator.dart';
import 'package:flutter_tether/generators/user_preferences_manager_generator.dart';
import 'package:flutter_tether/utils/file_utils.dart';
import 'package:flutter_tether/utils/schema_loader.dart';
import 'package:flutter_tether/utils/schema_reader.dart';
import 'package:flutter_tether/utils/schema_version_manager.dart';
import 'package:flutter_tether/utils/schema_writer.dart';