oa_fone 1.0.2 oa_fone: ^1.0.2 copied to clipboard
Parte do Projeto Odonto - Abre Modal para ligações por Telefone ou WhatsApp.
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('Ligar para Paciente'),
backgroundColor: Colors.purple,
centerTitle: true,
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
ElevatedButton(
onPressed: () =>
ligarContato(context, 113999999999, 113999999999, true, true),
child: const Text('Click Me'),
),
],
),
),
);
}
}