FLUTTER ECOSYSTEM

akshay512/bottom_loader

하단 로더용 플러터 패키지

bottom_loader 프로젝트 이미지
Stars
6
Forks
2
최근 푸시(UTC)
2022. 1. 30.
프로젝트 상태
활성
Akshay A S GitHub avatar
GITHUB User

Akshay A S ↗

I make things💪

India
언어DartHTMLKotlinSwiftObjective-C

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 2 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

bottom_loader

A light weight package to show loader using bottom modal sheet. As it is a stateful widget, you can change the text shown on the bottom sheet dynamically.

https://img.shields.io/badge/dontate-Buy%20Me%20a%20Coffee-blueviolet   LinkedIn   Get the library   Example

Supported Dart Versions

Dart SDK version >= 2.12.0

Demo

Bottom Loader Demo

Installation

Pub

Add the Package

dependencies:
  bottom_loader: ^0.2.2

How to use

Import the package in your dart file

import 'package:bottom_loader/bottom_loader.dart';

Create an instance of BottomLoader

BottomLoader bl;

Initialise the bl object inside the build() method passing context to it

  1. Initialize the Bottom Loader object
    bl = new BottomLoader(context);
    
  2. By default it will show a bottom loader with loader as CircularProgressIndicator but you can specify a custom loader widget and specify if you want your bottom loader to dismiss when back button is pressed isDismissible parameter (Optional)
    //For bottom loader
    //loader aceepts any custom widget as loader
    bl = new BottomLoader(context, isDismissible: true/false, showLogs: true/false,loader: CircularProgressIndicator());
        
    
  3. Style the bottom loading sheet (Optional)
    bl.style(
      message: 'Loading File...',
      backgroundColor: Colors.white,
      messageTextStyle: TextStyle(
         color: Colors.black, fontSize: 19.0, fontWeight: FontWeight.w600)
      );
    
    Note: You don't need to use all parameters, all of them are optional
    
  4. Showing the bottom loader
    await bl.show();
    
  5. Dismissing the bottom loader
    bl.close().then((isHidden) {
      print(isHidden);
    });
    
Want to contribute?

Pull requests and issues are always welcome!

How to contribute?
  1. Fork the repository
  2. Clone it to your local machine
  3. Open the project in your favourite editor
  4. Open cmd/terminal and run flutter clean and then flutter packages get
  5. Make the changes
  6. Create a Pull Request
View the issues here
This library is only tested for Android, iOS contributors are most welcome