flutter_thailand_provinces 1.0.1 copy "flutter_thailand_provinces: ^1.0.1" to clipboard
flutter_thailand_provinces: ^1.0.1 copied to clipboard

The package for creating a database of provinces, districts and sub-districts of Thailand with basic information such as Thai names, English names and postal numbers. For use in a Flutter.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter_thailand_provinces/flutter_thailand_provinces.dart';
import 'package:flutter_thailand_provinces_example/screens/amphures_list_screen.dart';
import 'package:flutter_thailand_provinces_example/screens/home_screen.dart';
import 'package:flutter_thailand_provinces_example/screens/provinces_list_screen.dart';
import 'package:flutter_thailand_provinces/provider/address_provider.dart';

Future main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await ThailandProvincesDatabase.init();
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(home: HomeScreen());
  }
}
13
likes
15
pub points
37%
popularity

Publisher

unverified uploader

The package for creating a database of provinces, districts and sub-districts of Thailand with basic information such as Thai names, English names and postal numbers. For use in a Flutter.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, sqflite

More

Packages that depend on flutter_thailand_provinces