slipstream_agent 1.0.0
slipstream_agent: ^1.0.0 copied to clipboard
An in-process companion for the Flutter Slipstream agent tools.
example/example.dart
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:slipstream_agent/slipstream_agent.dart';
void main() {
if (kDebugMode) {
SlipstreamAgent.init();
}
runApp(const SlipstreamExampleApp());
}
class SlipstreamExampleApp extends StatelessWidget {
const SlipstreamExampleApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('Slipstream Agent Example')),
body: const Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('The Slipstream agent is active!'),
SizedBox(height: 16),
ElevatedButton(
onPressed: null,
child: Text('Target me with the agent'),
),
],
),
),
),
);
}
}