ai_assisted_widgets 1.0.4-beta ai_assisted_widgets: ^1.0.4-beta copied to clipboard
This package help you to create Text widgets with AI assistance.
This package help you with the AI Assisted Widget for Flutter that makes it easier to create and customize widgets.
Features #
AI Assisted Widget for Flutter that makes it easier to create and customize widgets.
Getting started #
No dependencies required.
Usage #
Import the package in your dart file
import 'package:flutter/material.dart';
import 'package:ai_assisted_widgets/ai_assisted_widgets.dart'; // Import your package
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text('AI-Assisted Text Input')),
body: Center(
child: Padding(
padding: const EdgeInsets.all(16.0),
child: AIAssistedTextInput(
apiUrl: 'https://api.openai.com/v1/completions',
apiKey: 'YOUR_OPENAI_API_KEY', // Users will replace this with their API key
inputDecoration: InputDecoration(
labelText: 'Ask something...',
border: OutlineInputBorder(),
),
),
),
),
),
);
}
}