rasht 0.1.4 copy "rasht: ^0.1.4" to clipboard
rasht: ^0.1.4 copied to clipboard

Rain City API tracing for Flutter — in-app Dio request inspector with cURL and Postman export.

Rasht #

Rain City API tracing for Flutter.

Rasht is named after Rasht, Iran — the Rain City. It gives you an in-app floating umbrella button that captures Dio REST requests in debug builds, with one-tap cURL and Postman collection export.

Features #

  • Dio interceptor that logs every request/response
  • Draggable umbrella FAB with request count badge
  • Request list with status, path, and duration
  • Detail view with URL, headers, body, and response
  • Copy cURL (Postman-style)
  • Copy Postman Collection v2.1 JSON

Release / profile builds #

By default Rasht is off in release mode. Enable it for internal tester builds:

void main() {
  Rasht.enabled = true;
  runApp(const MyApp());
}

Or pass enabled per widget/interceptor:

RashtOverlay(enabled: true, child: child)
RashtInterceptor(store, enabled: true)

Setup #

dependencies:
  rasht: ^0.1.0
import 'package:dio/dio.dart';
import 'package:flutter/foundation.dart';
import 'package:rasht/rasht.dart';

final dio = Dio();
if (Rasht.enabled) {
  dio.interceptors.add(RashtInterceptor(RashtStore.instance));
}

Wrap your app in MaterialApp.builder:

MaterialApp(
  builder: (context, child) {
    return RashtOverlay(child: child ?? const SizedBox.shrink());
  },
);

Postman import #

Tap Copy for Postman on any request, then in Postman: Import → Raw text → Paste.

License #

MIT

1
likes
0
points
432
downloads

Publisher

unverified uploader

Weekly Downloads

Rain City API tracing for Flutter — in-app Dio request inspector with cURL and Postman export.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, flutter, font_awesome_flutter

More

Packages that depend on rasht