oa_fone 1.0.2 copy "oa_fone: ^1.0.2" to clipboard
oa_fone: ^1.0.2 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('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'),
            ),
          ],
        ),
      ),
    );
  }
}
2
likes
100
pub points
25%
popularity

Publisher

unverified uploader

Parte do Projeto Odonto - Abre Modal para ligações por Telefone ou WhatsApp.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter, font_awesome_flutter, google_fonts, url_launcher

More

Packages that depend on oa_fone