at_sync_ui_flutter 1.2.0 copy "at_sync_ui_flutter: ^1.2.0" to clipboard
at_sync_ui_flutter: ^1.2.0 copied to clipboard

discontinuedreplaced by: at_client_flutter
PlatformAndroidiOS

Deprecated Flutter sync status widgets for Atsign Protocol apps. Use AtCollection streams in at_client for new apps.

The Atsign FoundationThe Atsign Foundation

pub package gitHub license

Deprecated #

at_sync_ui_flutter is deprecated. Version 1.2.0 is the final minor release and exists to keep existing apps compiling while they migrate away from foreground sync progress UI.

New Flutter apps should use AtCollection<T> and Query.watch() from at_client. Collections are backed by the local synced store by default, and their streams re-emit when local or remote updates arrive. In most screens, the UI should listen to collection streams directly instead of showing a global "sync in progress" indicator.

Migration #

Use collection streams as the app-facing state source:

StreamBuilder<List<CItem<Todo>>>(
  stream: todos.query().where((todo) => !todo.obj.done).watch(),
  builder: (context, snapshot) {
    if (snapshot.hasError) {
      return ErrorView(error: snapshot.error!);
    }
    if (!snapshot.hasData) {
      return const Center(child: CircularProgressIndicator());
    }

    final items = snapshot.data!;
    if (items.isEmpty) {
      return const EmptyTodosView();
    }

    return TodoList(items: items);
  },
)

For worked examples, see:

Legacy API #

The existing AtSyncUIService, Material widgets, and Cupertino widgets remain available in this release for compatibility, but they are deprecated and should not be used in new code.

Open source usage and contributions #

This is open source code, so feel free to use it as is, suggest changes or enhancements or create your own version. See CONTRIBUTING.md for detailed guidance on how to setup tools, tests and make a pull request.

4
likes
140
points
1.08k
downloads

Documentation

Documentation
API reference

Publisher

verified publisheratsign.org

Weekly Downloads

Deprecated Flutter sync status widgets for Atsign Protocol apps. Use AtCollection streams in at_client for new apps.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

BSD-3-Clause (license)

Dependencies

at_client, at_client_mobile, flutter

More

Packages that depend on at_sync_ui_flutter