value_selectable 2.0.0+2 copy "value_selectable: ^2.0.0+2" to clipboard
value_selectable: ^2.0.0+2 copied to clipboard

A Flutter package that provides computed values for `ValueNotifier`, inspired by the Selectors from Recoil.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'src/full_name_page.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const HomePage(),
      routes: {
        '/full_name_page': (context) => const FullNamePage(),
      },
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Home'),
      ),
      body: ListView(
        children: [
          ListTile(
            title: const Text('Full Name Page'),
            onTap: () {
              Navigator.pushNamed(context, '/full_name_page');
            },
          ),
          // ListTile(
          //   title: const Text('Page 2'),
          //   onTap: () {
          //     Navigator.pushNamed(context, '/page2');
          //   },
          // ),
          // ListTile(
          //   title: const Text('Page 3'),
          //   onTap: () {
          //     Navigator.pushNamed(context, '/page3');
          //   },
          // ),
        ],
      ),
    );
  }
}
10
likes
160
points
9
downloads

Publisher

verified publisherflutterando.com.br

Weekly Downloads

A Flutter package that provides computed values for `ValueNotifier`, inspired by the Selectors from Recoil.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on value_selectable