flutter_simple_country_picker 0.0.1-pre.4 copy "flutter_simple_country_picker: ^0.0.1-pre.4" to clipboard
flutter_simple_country_picker: ^0.0.1-pre.4 copied to clipboard

The Flutter package that provides an easy-to-use country selection widget. It allows users to select a country from a comprehensive list of countries, making it simple to integrate country picking fun [...]

example/lib/main.dart

import 'dart:async';

import 'package:example/src/common/initialization/initialization.dart'
    deferred as initialization;
import 'package:example/src/common/util/app_zone.dart';
import 'package:example/src/common/util/error_util.dart';
import 'package:example/src/common/widget/app.dart' deferred as app;
import 'package:example/src/common/widget/app_error.dart' deferred as app_error;
import 'package:example/src/preview/country_picker_preview.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

void main() => appZone(
      () async {
        // Splash screen
        final initializationProgress =
            ValueNotifier<({int progress, String message})>(
                (progress: 0, message: ''));
        /* runApp(SplashScreen(progress: initializationProgress)); */
        await initialization.loadLibrary();
        initialization
            .$initializeApp(
              onProgress: (progress, message) => initializationProgress.value =
                  (progress: progress, message: message),
              onSuccess: (_) async {
                await app.loadLibrary();
                runApp(app.App(home: const CountryPickerPreview()));
              },
              onError: (error, stackTrace) async {
                await app_error.loadLibrary();
                runApp(app_error.AppError(error: error));
                ErrorUtil.logError(error, stackTrace).ignore();
              },
            )
            .ignore();
      },
    );
1
likes
0
points
42
downloads

Publisher

unverified uploader

Weekly Downloads

The Flutter package that provides an easy-to-use country selection widget. It allows users to select a country from a comprehensive list of countries, making it simple to integrate country picking functionality into your Flutter applications. The package supports Android, iOS, and web platforms, and offers customization options for fonts and styles. Made with ❤️ by ziqq.

Homepage
Repository (GitHub)
View/report issues

Funding

Consider supporting this project:

www.buymeacoffee.com
www.patreon.com
boosty.to

License

unknown (license)

Dependencies

collection, flutter, flutter_localizations, intl, meta

More

Packages that depend on flutter_simple_country_picker