stow_codecs 1.1.1 copy "stow_codecs: ^1.1.1" to clipboard
stow_codecs: ^1.1.1 copied to clipboard

A collection of codecs which can be used with Stow.

example/main.dart

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

final stows = Stows();

class Stows {
  final count = PlainStow('count', 0);
  // ... add more stows as needed
}

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: ValueListenableBuilder(
            valueListenable: stows.count,
            builder: (context, value, child) {
              return Text('Count: $value');
            },
          ),
        ),
        floatingActionButton: FloatingActionButton(
          onPressed: () => stows.count.value++,
          tooltip: 'Increment',
          child: Icon(Icons.add),
        ),
      ),
    );
  }
}
0
likes
0
points
403
downloads

Publisher

verified publisheradil.hanney.org

Weekly Downloads

A collection of codecs which can be used with Stow.

Repository (GitHub)
View/report issues

Topics

#stow #codec

License

unknown (license)

Dependencies

flutter

More

Packages that depend on stow_codecs