daum_postcode_view 0.1.2 copy "daum_postcode_view: ^0.1.2" to clipboard
daum_postcode_view: ^0.1.2 copied to clipboard

Daum Postcode View Widget Package for Flutter.

example/main.dart

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

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const PostcodePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: DaumPostcodeView(
        onComplete: (model) {
          Navigator.of(context).pop(model);
        },
        options: const DaumPostcodeOptions(
          animation: true,
          hideEngBtn: true,
          themeType: DaumPostcodeThemeType.darknessTheme,
        ),
      ),
    );
  }
}
5
likes
120
points
138
downloads

Publisher

verified publisheronehunnitconst.xyz

Weekly Downloads

Daum Postcode View Widget Package for Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, json_annotation, webview_flutter

More

Packages that depend on daum_postcode_view