uni_support 1.0.2
uni_support: ^1.0.2 copied to clipboard
A comprehensive library for seamless Customer Support. Effortlessly handle Open issue ticket, start chat with admin, and streamline your issue processing with our robust and versatile solution.
example/lib/main.dart
import 'package:example/uni_support_page.dart';
import 'package:flutter/material.dart';
import 'package:firebase_core/firebase_core.dart';
import 'firebase_options.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
debugShowCheckedModeBanner: false,
title: 'UNI-SUPPORT',
home: MyHomePage(title: 'UNI-SUPPORT-HOME'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.teal,
title: Text(widget.title, style: const TextStyle(color: Colors.white)),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
const Text(
'CLICK HERE TO GET STARTED',
style: TextStyle(fontSize: 20),
),
const SizedBox(height: 20),
FloatingActionButton(
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => const UniSupportPage()),
);
},
tooltip: 'UNI-SUPPORT',
backgroundColor: Colors.teal,
child: const Icon(Icons.add),
),
],
),
),
);
}
}
copied to clipboard