kodress 0.1.1 copy "kodress: ^0.1.1" to clipboard
kodress: ^0.1.1 copied to clipboard

The kodress Dart package provides a user-friendly UI component for seamlessly integrating Korean street address searching into your Dart and Flutter applications.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(home: Home());
  }
}

class Home extends StatefulWidget {
  const Home({super.key});

  @override
  State<Home> createState() => _HomeState();
}

class _HomeState extends State<Home> {
  AddressData? data;
  final _controller = TextEditingController();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Search Address'),
      ),
      body: Padding(
        padding: const EdgeInsets.all(18),
        child: Center(
          child: TextField(
            controller: _controller,
            decoration: _inputDecoration,
            onTap: _onTap,
          ),
        ),
      ),
    );
  }

  final _inputDecoration = const InputDecoration(
    label: Text('μ£Όμ†Œ'),
    border: OutlineInputBorder(
        borderRadius: BorderRadius.all(
      Radius.circular(12),
    )),
  );

  void _onTap() async {
    data = await Navigator.of(context).push(
      MaterialPageRoute(
        builder: (_) => const Kodress(),
      ),
    );
    if (data != null) {
      setState(() {
        _controller.text = data!.address ?? _controller.text;
      });
    }
  }
}
1
likes
160
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

The kodress Dart package provides a user-friendly UI component for seamlessly integrating Korean street address searching into your Dart and Flutter applications.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, webview_flutter

More

Packages that depend on kodress