emergency_helpline 0.0.1 copy "emergency_helpline: ^0.0.1" to clipboard
emergency_helpline: ^0.0.1 copied to clipboard

A Flutter package providing emergency numbers for countries like Pakistan, USA, etc.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:emergency_helpline/emergency_helpline.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    final pk = EmergencyHelpline.getForCountry("PK");

    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text("Emergency Helpline Example")),
        body: Center(
          child: pk == null
              ? const Text("No data")
              : Text(
            "Police: ${pk.police}\nAmbulance: ${pk.ambulance}\nFire: ${pk.fire}",
            textAlign: TextAlign.center,
            style: const TextStyle(fontSize: 20),
          ),
        ),
      ),
    );
  }
}
3
likes
0
points
135
downloads

Publisher

verified publishertalharehmandev.online

Weekly Downloads

A Flutter package providing emergency numbers for countries like Pakistan, USA, etc.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on emergency_helpline