xyz_pod 0.43.0 copy "xyz_pod: ^0.43.0" to clipboard
xyz_pod: ^0.43.0 copied to clipboard

discontinuedreplaced by: df_pod

This package simplifies state management in Flutter applications and is well-suited for use with a Modular Services State Management (MSSM) pattern.

🇽🇾🇿 Pod #

This package simplifies state management in Flutter applications and is well-suited for use with a Modular Services State Management (MSSM) pattern.

pub package

Installation #

Use this package as a dependency by adding it to your pubspec.yaml file (see here).

Documentation #

🔜 Documentation and video tutorials are coming soon. Feel free to contact me for more information.

Resources #

Examples: #

Slides (Outdated): #

Here is a basic example on how to use a Pod and PodBuilder: #

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

final pTemperature = Pod<double>(68.0);
final pWeatherCondition = Pod<String>('Sunny');

class WeatherPods extends PodListHelper {
  const WeatherPods();
  PodList get pods => [pTemperature, pWeatherCondition];
  double get temperature => pods.elementAt(0)!.value as double;
  String get weatherCondition => pods.elementAt(1)!.value as String;
}

void main() {
  runApp(
    MaterialApp(
      home: Material(
        child: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              PodListBuilder(
                pods: WeatherPods().pods,
                builder: (context, child, pods) {
                  final temperature = WeatherPods().temperature;
                  final weatherCondition = WeatherPods().weatherCondition;
                  return Text(
                    'Today is $weatherCondition and the temperature is $temperature°F.',
                  );
                },
              ),
              // ... Additional UI and Button to update Pods ...
            ],
          ),
        ),
      ),
    ),
  );
}

Contributing and Discussions #

This is an open-source project, and contributions are welcome from everyone, regardless of experience level. Contributing to projects is a great way to learn, share knowledge, and showcase your skills to the community. Join the discussions to ask questions, report bugs, suggest features, share ideas, or find out how you can contribute.

Join GitHub Discussions: #

💬 https://github.com/robmllze/xyz_pod/discussions

Join Reddit Discussions: #

💬 https://www.reddit.com/r/xyz_pod/

Chief Maintainer: #

📧 Email Robert Mollentze at robmllze@gmail.com

License #

This project is released under the MIT License. See LICENSE for more information.

10
likes
0
points
166
downloads

Publisher

unverified uploader

Weekly Downloads

This package simplifies state management in Flutter applications and is well-suited for use with a Modular Services State Management (MSSM) pattern.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, flutter

More

Packages that depend on xyz_pod