flutter_fit_utils_config 1.0.3 copy "flutter_fit_utils_config: ^1.0.3" to clipboard
flutter_fit_utils_config: ^1.0.3 copied to clipboard

A flutter package to easily manage configurations. This package is part of the flutter_fit_utils environement.

example/main.dart

import 'package:flutter_fit_utils_config/remote_config.dart';

Future<void> main() async {
  final CharacterConfig characterConfig = CharacterConfig();
  await characterConfig.initialize();

  final OtherConfig config = OtherConfig();
  config.read();
}

/// Example config class.
class CharacterConfig extends RemoteConfig {
  int speed = 0;
  int attack = 0;

  @override
  void read() {
    speed = appConfig.getInt("speed");
    attack = appConfig.getInt("attack");
  }
}

/// Example config class.
class OtherConfig extends RemoteConfig {
  int stuff = 0;

  @override
  void read() {
    stuff = appConfig.getInt("stuff");
  }
}
2
likes
150
points
37
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter package to easily manage configurations. This package is part of the flutter_fit_utils environement.

Homepage
Repository (GitHub)
View/report issues

Topics

#configuration #remote-config

Documentation

API reference

License

MIT (license)

Dependencies

firebase_remote_config, flutter

More

Packages that depend on flutter_fit_utils_config