pollinations_chat 1.0.0
pollinations_chat: ^1.0.0 copied to clipboard
A Flutter package for integrating Pollinations AI chat functionality into your app.
example/main.dart
import 'package:flutter/material.dart';
import 'package:pollinations_chat/pollinations_chat.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Pollinations Chat Example',
theme: ThemeData(primarySwatch: Colors.blue),
home: Scaffold(
appBar: AppBar(title: Text('Pollinations Chat')),
body: PollinationsChatWidget(
hintText: 'اكتب رسالتك هنا...',
userMessageColor: Colors.blue,
aiMessageColor: Colors.grey[300],
),
),
);
}
}