oa_fone 1.0.0
oa_fone: ^1.0.0 copied to clipboard
Parte do Projeto Odonto - Abre Modal para ligações por Telefone ou WhatsApp.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:oa_fone/oa_fone.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MyHomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key}) : super(key: key);
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Examplo Ligar Paciente'),
centerTitle: true,
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
ElevatedButton(
onPressed: () => ligarContato(
context, '13925223451', '91212112534', true, false),
child: const Text('Click Me'),
),
],
),
),
);
}
}