FLUTTER ECOSYSTEM

Keshav3097/flutter_awesome_bottom_sheet

快速輕鬆地顯示酷炫的底端表單作為確認對話框

flutter_awesome_bottom_sheet 專案封面
Stars
1
Forks
1
最近推送(UTC)
2022年9月8日
專案狀態
未封存
Keshav Tasakar GitHub avatar
GITHUB User

Keshav Tasakar ↗

Flutter Developer

語言C++CMakeDartHTMLCSwiftKotlinObjective-C

此儲存庫發佈的套件

使用的依賴

依賴清單 3 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}
  • flutter_lints開發依賴^2.0.0

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

Flutter Awesome Bottom Sheet

Features

  • Custom child widgets
  • Adaptive design

Supported platforms

  • Flutter Android
  • Flutter iOS
  • Flutter web
  • Flutter desktop
  • Flutter macOS
  • Flutter linux

Installation

Add flutter_awesome_bottom_sheet: <later-version> to your pubspec.yaml dependencies. And import it:

import 'package:flutter_awesome_bottom_sheet/flutter_awesome_bottom_sheet.dart';
How to Use

How to Use

create object

final AwesomeBottomSheet _awesomeBottomSheet = AwesomeBottomSheet();

Example

Simple Awesome Sheet

 _awesomeBottomSheet.show(
      context: context,
      title: const Text("Lorem Ipsum"),
      description: const Text("Flutter Awesome Bottom sheet content here..."),
      color: CustomSheetColor(
        mainColor: const Color(0xff2979FF),
        accentColor: const Color(0xff0D47A1),
        iconColor: Colors.white,
      ),
      positive: AwesomeSheetAction(
        onPressed: () {
          Navigator.of(context).pop();
        },
        title: 'CANCEL',
      ),
    );

Add Buttons

 _awesomeBottomSheet.show(
     ...
      positive: AwesomeSheetAction(
        onPressed: () {
          Navigator.of(context).pop();
        },
        title: 'DELETE',
      ),
      negative: AwesomeSheetAction(
        onPressed: () {
          Navigator.of(context).pop();
        },
        title: 'CANCEL',
      ),
    );

Add Icons in content and action button


 _awesomeBottomSheet.show(
     ...
      icon: Icons.signal_cellular_connected_no_internet_4_bar,
      positive: AwesomeSheetAction(
        onPressed: () {
          Navigator.of(context).pop();
        },
        title: 'OPEN SETTING',
        icon: Icons.settings,
      ),
      negative: AwesomeSheetAction(
        onPressed: () {
          Navigator.of(context).pop();
        },
        title: 'CANCEL',
      ),
    );

Custom color

 _awesomeBottomSheet.show(
      ...
      color: CustomSheetColor(
        mainColor: Colors.white,
        accentColor: const Color(0xff5A67D8),
        iconColor: const Color(0xff5A67D8),
      ),
      ...
    ); 

Screenshot

Simple Action Icon
simple action icon