dash_kit_control_panel 3.1.0 icon indicating copy to clipboard operation
dash_kit_control_panel: ^3.1.0 copied to clipboard

Control panel with debugging features for convenient app development.

example/lib/main.dart

import 'package:alice_lightweight/alice.dart';
import 'package:dash_kit_control_panel/dash_kit_control_panel.dart';
import 'package:dio/dio.dart';
import 'package:example/example_app.dart';
import 'package:example/example_settings_provider.dart';
import 'package:flutter/material.dart';

final alice = Alice();
final navigatorKey = alice.getNavigatorKey();
final dio = Dio();

Future main() async {
  dio.interceptors.add(alice.getDioInterceptor());
  dio.options = BaseOptions(
    connectTimeout: 15 * 1000,
    receiveTimeout: 15 * 1000,
  );

  runApp(Application(
    child: ExampleApp(
      navigatorKey: navigatorKey,
      sendTestRequest: _sendTestRequest,
    ),
  ));

  final settingsProvider = ExampleSettingsProvider(
    alice: alice,
    dios: [dio],
  );

  ControlPanel.initialize(
    navigatorKey: navigatorKey,
    settingsProvider: settingsProvider,
  );

  _sendTestRequest();
}

void _sendTestRequest() {
  dio
      .get('https://www.google.org')
      .then((response) => print(response))
      .catchError((error) => print(error));
}
3
likes
120
pub points
59%
popularity

Publisher

verified publisher icondash-kit.blogspot.com

Control panel with debugging features for convenient app development.

Homepage

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

alice_lightweight, device_preview, flutter, logger, package_info_plus, rxdart, shared_preferences

More

Packages that depend on dash_kit_control_panel