grpc_alice
This package help to log GRPC request and response.
Preview
Installing
-
Add dependencies to
pubspec.yaml
Get the latest version in the 'Installing' tab on pub.dev
dependencies: grpc_alice: <latest-version>
-
Run pub get.
flutter pub get
-
Import package.
import 'package:grpc_alice/grpc_alice.dart';
Implementation
-
Wrap
MaterialApp
withGrpcAlice
.GrpcAlice( child: MaterialApp( // Your initialization for material app. ), )
-
use
MyInterceptor
in grpc interceptors options.MyHandlerClient myHandlerClient = MyHandlerClient(grpcClient.channel, interceptors: [MyInterceptor()]);
-
Shake your device.