搜尋套件、儲存庫與 APP 分類

套件詳情v0.2.0

bangladesh

「Bangladesh」Flutter 插件是顯示可自訂的孟加拉地圖的強大工具。透過強調行政區邊界與自訂觸控回饋,可在多種應用中提供令人投入的使用者體驗。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
55
喜歡數
26
Pub 分數
130

安裝套件

flutter pub add bangladesh

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Bangladesh Flutter 插件提供了一個可自訂的孟加拉國地圖,並強調顯示各行政區的邊界。它支援互動式觸控回饋,非常適合需要在孟加拉國範圍內進行地理視覺化的應用程式。此插件專為跨平台使用設計,支援 Android、iOS、Web、macOS、Windows 與 Linux。插件輕量且能順暢整合至 Flutter 項目中,透過直覺的地圖互動提升使用者參與度。

適用情境

  • 互動式教育應用
  • 政府服務門戶
  • 旅遊和旅遊平台
  • 地理數據可視化
  • 本地企業位置查找器

主要特色

  • 可自訂的分區邊界
  • 地圖區域的觸控反饋
  • 跨平台相容性
  • 輕量且易於整合
  • 高解析度地圖渲染

適合對象

  • 為孟加拉國開發基於位置的應用程式開發者
  • 教育或公民科技專案
  • 需要區域地圖互動的應用程式

使用建議

  • 僅限孟加拉國
  • 無動態數據加載
  • 需要手動更新以進行管理變更
  • 不適用於即時追蹤

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Bangladesh

The 'Bangladesh' Flutter plugin is a versatile tool that allows developers to effortlessly render a detailed map of Bangladesh within their Flutter applications. With its seamless integration, this plugin provides a visually appealing display of the country's map, highlighting all division borders for enhanced clarity.

Features

  • Render a detailed map of Bangladesh within Flutter applications.
  • Highlight division borders for improved visual representation.
  • Provide custom touch feedback for interactive user experience.
  • Suitable for various applications such as educational apps, travel guides, and more.

Installation

To use the 'Bangladesh' Flutter plugin, follow these steps:

  1. Add the following line to the dependencies section in your project's pubspec.yaml file:
flutter pub add bangladesh
  1. Import the package in your Dart code:
import 'package:bangladesh/bangladesh.dart';

Usage

Render Bangladesh Map

To render the Bangladesh map, use the BangladeshMap widget:

import 'package:bangladesh/bangladesh.dart';

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Bangladesh Map'),
      ),
      body: Center(
        child: Bangladesh(),
      ),
    );
  }
}
Customize Map

The 'Bangladesh' Flutter plugin allows you to provide custom touch feedback when interacting with the map. Here's an example of how to achieve this:

import 'package:bangladesh/bangladesh.dart';

class OurMap extends StatelessWidget {

  @override
  Widget build(BuildContext context,  ) {
    return const BangladeshMap(
      width: 461,
      height: 600,
      rangpurColor: Colors.orange,
      rajshahiColor: Colors.red,
      dhakaColor: Colors.indigo,
      sylhetColor: Colors.blue,
      khulnaColor: Colors.teal,
      chittagongColor: Colors.grey,
      barisalColor: Colors.pink,
      mymensinghColor: Colors.brown,
      showBorder: true,
      showName: true,
      showDivisionBorder: true,
      showDistrictBorder: true,
    );

  }
}

Available Options

Also there are some other properties you can use to customize the map:

Field Type Description
width double Width of the map
height double Height of the map
animationScaleFactor double Scale factor for map animation
showName bool Whether to show division names on the map
showTooltip bool Whether to show tooltips when tapping on divisions
showDistrictBorder bool Whether to show borders around districts
isNameUpperCase bool Whether division names should be displayed in uppercase
showBorder bool Whether to show borders around divisions
showDivisionBorder bool Whether to show borders between divisions
tooltipFeedback bool? Whether to provide haptic feedback on tooltip display
tooltipPreferBelow bool? Whether tooltips should be displayed below divisions
tooltipExcludeFromSemantics bool? Whether tooltips should be excluded from semantics
borderStrokeSize double? Size of the border stroke
divisionStrokeSize double? Size of the division border stroke
districtStrokeSize double? Size of the district border stroke
tooltipHeight double? Height of the tooltip
tooltipVerticalOffset double? Vertical offset for tooltip display
borderColor Color? Color of the border
divisionBorderColor Color? Color of the division border
districtBorderColor Color? Color of the district border
tooltipDecoration Decoration? Decoration for the tooltip
tooltipDuration Duration? Duration for tooltip display
tooltipWaitDuration Duration? Duration to wait before displaying the tooltip
tooltipTriggerMode TooltipTriggerMode? Mode for triggering tooltips (long press or tap)
tooltipTextStyle TextStyle? Text style for the tooltip
nameTextStyle TextStyle? Text style for division names
tooltipPadding EdgeInsetsGeometry? Padding for the tooltip
tooltipMargin EdgeInsetsGeometry? Margin for the tooltip
dhakaColor Color? Color for Dhaka division
rangpurColor Color? Color for Rangpur division
rajshahiColor Color? Color for Rajshahi division
khulnaColor Color? Color for Khulna division
sylhetColor Color? Color for Sylhet division
barisalColor Color? Color for Barisal division
chittagongColor Color? Color for Chattogram division
mymensinghColor Color? Color for Mymensingh division
onTapRangpur VoidCallback? Callback function for tapping on Rangpur division
onTapRajshahi VoidCallback? Callback function for tapping on Rajshahi division
onTapMymensingh VoidCallback? Callback function for tapping on Mymensingh division
onTapSylhet VoidCallback? Callback function for tapping on Sylhet division
onTapKhulna VoidCallback? Callback function for tapping on Khulna division
onTapDhaka VoidCallback? Callback function for tapping on Dhaka division
onTapBarishal VoidCallback? Callback function for tapping on Barishal division
onTapChattogram VoidCallback? Callback function for tapping on Chattogram division
rangpurTitle String Title for Rangpur division
rajshahiTitle String Title for Rajshahi division
mymensinghTitle String Title for Mymensingh division
sylhetTitle String Title for Sylhet division
khulnaTitle String Title for Khulna division
dhakaTitle String Title for Dhaka division
barishalTitle String Title for Barishal division
chattogramTitle String Title for Chattogram division
tooltipMsgRangpur String? Tooltip message for Rangpur division
tooltipMsgRajshahi String? Tooltip message for Rajshahi division
tooltipMymensingh String? Tooltip message for Mymensingh division
tooltipSylhet String? Tooltip message for Sylhet division
tooltipKhulna String? Tooltip message for Khulna division
tooltipDhaka String? Tooltip message for Dhaka division
tooltipBarishal String? Tooltip message for Barishal division
tooltipChattogram String? Tooltip message for Chattogram division
tooltipRichMsgRangpur InlineSpan? Rich tooltip message for Rangpur division
tooltipRichMsgRajshahi InlineSpan? Rich tooltip message for Rajshahi division
tooltipRichMsgMymensingh InlineSpan? Rich tooltip message for Mymensingh division
tooltipRichMsgSylhet InlineSpan? Rich tooltip message for Sylhet division
tooltipRichMsgKhulna InlineSpan? Rich tooltip message for Khulna division
tooltipRichMsgDhaka InlineSpan? Rich tooltip message for Dhaka division
tooltipRichMsgBarishal InlineSpan? Rich tooltip message for Barishal division
tooltipRichMsgChattogram InlineSpan? Rich tooltip message for Chattogram division

Feel free to refer to this table when using the 'Bangladesh' Flutter plugin to understand the available options and their respective types.

Contributions

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.

License

The 'Bangladesh' Flutter plugin is released under the MIT License.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。