adcio_agent 0.1.5 copy "adcio_agent: ^0.1.5" to clipboard
adcio_agent: ^0.1.5 copied to clipboard

This is a Flutter agent for the ADCIO project, a chatbot based on LLM(GPT) that suggests personalized products through conversations

adcio_agent #

pub package

A Flutter plugin that provides a ADCIO Agent widget.

Android iOS
Support SDK 19+ or 20+ 11.0+

Usage #

Installation #

Add adcio_agent as a dependency in your pubspec.yaml file.

Android #

This plugin uses Platform Views to embed the Android’s WebView within the Flutter app.

You should however make sure to set the correct minSdkVersion in android/app/build.gradle if it was previously lower than 19:

android {
    defaultConfig {
        minSdkVersion 19
    }
}

Sample Usage #

You can now display a ADCIO Agent by:

@override
Widget build(BuildContext context) {
  return Scaffold(
    appBar: AppBar(
      title: const Text('adcio_agent example app'),
    ),
    body: AdcioAgent(
      clientId: '30cb6fd0-17a5-4c56-b144-fef67de81bef',
      onClickProduct: (String productId) {
        log('productId = $productId');

        // Navigation and routing
        final route = MaterialPageRoute(
          builder: (context) => DemoProductPage(
            productId: productId,
          ),
        );
        Navigator.of(context).push(route);
      },
    ),
  );
}
property description default
clientId String required
onClickProduct void Function(String productId) required

call agent page goBack action:

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: BackButton(
          onPressed: () async {
            final isStartPage = await isAgentStartPage;

            isStartPage ? Navigator.of(context).canPop() : agentGoback();
          },
        ),
        ...
      ),
      ...
    );
  }

Preview Images #

Android:

image image

iOS:

image image

1
likes
0
pub points
0%
popularity

Publisher

verified publishercorca.ai

This is a Flutter agent for the ADCIO project, a chatbot based on LLM(GPT) that suggests personalized products through conversations

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, webview_flutter

More

Packages that depend on adcio_agent