Skip to main content

capybara_devtools 0.1.0 copy "capybara_devtools: ^0.1.0" to clipboard
capybara_devtools: ^0.1.0 copied to clipboard

See a Flutter app's logs, errors, network, storage and state in Capybara, the local devtools for React Native, Flutter and web apps.

example/example.dart

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

void main() {
  Capybara.run(() {
    WidgetsFlutterBinding.ensureInitialized();
    runApp(const ExampleApp());
  }, options: const CapybaraOptions(appName: 'Example'));
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: FilledButton(
            onPressed: () => Capybara.log('Cart saved', level: 'info', data: {'items': 3, 'total': 42.5}),
            child: const Text('Log a value'),
          ),
        ),
      ),
    );
  }
}
0
likes
160
points
455
downloads

Documentation

API reference

Publisher

verified publishercapybara.lhphuc.com

Weekly Downloads

See a Flutter app's logs, errors, network, storage and state in Capybara, the local devtools for React Native, Flutter and web apps.

Homepage
Repository (GitHub)
View/report issues

Topics

#devtools #debugging #logging #network #flutter

License

MIT (license)

Dependencies

flutter, http, stream_channel, web_socket_channel

More

Packages that depend on capybara_devtools