address_selector_for_chinese 0.0.2 copy "address_selector_for_chinese: ^0.0.2" to clipboard
address_selector_for_chinese: ^0.0.2 copied to clipboard

中国的省市区选择器

address_selector_for_chinese #

中国的省市区选择器

本项目已更新至: 2021年统计用区划代码和城乡划分代码(截止时间:2021-10-31,发布时间:2021-12-30)

Getting Started #

pubspec.yaml #

    dependencies:
      address_selector_for_chinese: latest

import #

    import 'package:address_selector_for_chinese/index.dart';

use #

    void show() async {
  showMaterialModalBottomSheet(
    context: context,
    builder: (BuildContext context) =>
        AddressSelector(
          onSelected: (Result result) {
            print(result);
          },
          title: '选择地址',
          selectedColor: Colors.red,
          unselectedColor: Colors.black,
        ),
  );
}

LICENSE #

                            The MIT License (MIT)

                 Copyright (c) 2020-2022 Linty <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.