contextualactionbar 1.0.2 copy "contextualactionbar: ^1.0.2" to clipboard
contextualactionbar: ^1.0.2 copied to clipboard

outdated

A Contextual Action Bar(CAB) workaround for flutter. CAB is a top app bar that replace the app app bar and provide contextual actions to selected items

example/lib/main.dart

import 'package:example/status_saver.dart';

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

import 'permission_service.dart';
import 'whatsapp.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'Contextual Action Bar Demo',
        debugShowCheckedModeBanner: false,
        theme: ThemeData(primarySwatch: Colors.teal),
        // for Scaffold.of(context)
        // home: Scaffold(body: Whatsapp()),
        home: Scaffold(
          body: StreamBuilder<PermissionStatus>(
              stream: (StoragePermissionService()..requestPermission())
                  .storagePermission,
              builder: (context, snapshot) {
                if (snapshot.hasData && snapshot.data.isGranted) {
                  return StatusSaver();
                }
                return Container(
                  alignment: FractionalOffset.center,
                  child: const CircularProgressIndicator(),
                );
              }),
        ));
  }
}
66
likes
0
points
68
downloads

Publisher

unverified uploader

Weekly Downloads

A Contextual Action Bar(CAB) workaround for flutter. CAB is a top app bar that replace the app app bar and provide contextual actions to selected items

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, provider

More

Packages that depend on contextualactionbar