growerp_adk 1.1.0 copy "growerp_adk: ^1.1.0" to clipboard
growerp_adk: ^1.1.0 copied to clipboard

GrowERP ADK domain: AI agents, agent config, scheduled jobs, agent chat and governance (action audit + write approvals).

example/lib/main.dart

/*
 * This GrowERP software is in the public domain under CC0 1.0 Universal plus a
 * Grant of Patent License.
 *
 * To the extent possible under law, the author(s) have dedicated all
 * copyright and related and neighboring rights to this software to the
 * public domain worldwide. This software is distributed without any
 * warranty.
 *
 * You should have received a copy of the CC0 Public Domain Dedication
 * along with this software (see the LICENSE.md file). If not, see
 * <http://creativecommons.org/publicdomain/zero/1.0/>.
 */

// ignore_for_file: depend_on_referenced_packages
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:global_configuration/global_configuration.dart';
import 'package:growerp_core/growerp_core.dart';
import 'package:growerp_models/growerp_models.dart';
import 'package:growerp_user_company/growerp_user_company.dart';
import 'router_builder.dart';

/// Standalone GrowERP ADK application — composes the growerp_adk building
/// block (agents, jobs, chat, governance) on a static menu/router so it runs
/// without a backend-seeded menu.
Future main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await GlobalConfiguration().loadFromAsset('app_settings');

  Bloc.observer = AppBlocObserver();
  RestClient restClient = RestClient(await buildDioClient());
  WsClient chatClient = WsClient('chat');
  WsClient notificationClient = WsClient('notws');
  String applicationId = GlobalConfiguration().get("applicationId");

  runApp(
    TopApp(
      restClient: restClient,
      applicationId: applicationId,
      chatClient: chatClient,
      notificationClient: notificationClient,
      title: 'GrowERP ADK',
      router: createAdkExampleRouter(),
      extraDelegates: const [UserCompanyLocalizations.delegate],
      extraBlocProviders: getUserCompanyBlocProviders(
        restClient,
        applicationId,
      ),
    ),
  );
}
0
likes
130
points
62
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

GrowERP ADK domain: AI agents, agent config, scheduled jobs, agent chat and governance (action audit + write approvals).

Homepage
Repository (GitHub)
View/report issues
Contributing

License

unknown (license)

Dependencies

bloc_concurrency, dio, equatable, file_picker, flutter, flutter_bloc, flutter_localizations, flutter_test, global_configuration, go_router, growerp_core, growerp_models, intl, responsive_framework, stream_transform

More

Packages that depend on growerp_adk