All Projects → UttamPanchasara → Flutter-Floating-Menu

UttamPanchasara / Flutter-Floating-Menu

Licence: other
A new Flutter package which helps developers in creating Floating Menu.

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to Flutter-Floating-Menu

flutter-package-selection menu
A flutter widget, highly customizable, to select an item from a list of items.
Stars: ✭ 32 (-13.51%)
Mutual labels:  flutter-package
rainbow container
🌈 A magical container which changes colors whenever its build method is called.
Stars: ✭ 21 (-43.24%)
Mutual labels:  flutter-package
flutter link previewer
URL preview extracted from the provided text with basic customization and ability to render from cached data.
Stars: ✭ 35 (-5.41%)
Mutual labels:  flutter-package
dough
This package provides some widgets you can use to create a smooshy UI.
Stars: ✭ 518 (+1300%)
Mutual labels:  flutter-package
flutter cache store
More configurable cache manager for Flutter
Stars: ✭ 20 (-45.95%)
Mutual labels:  flutter-package
snapping sheet
A package that provides a highly customizable sheet widget that snaps to different vertical & horizontal positions!
Stars: ✭ 362 (+878.38%)
Mutual labels:  flutter-package
wasm.dart
WebAssembly virtual machine for Dart [work in progress]
Stars: ✭ 43 (+16.22%)
Mutual labels:  flutter-package
buttons tabbar
A Flutter package that implements a TabBar where each label is a toggle button.
Stars: ✭ 49 (+32.43%)
Mutual labels:  flutter-package
davinci
A flutter package to convert any widget to an Image.
Stars: ✭ 33 (-10.81%)
Mutual labels:  flutter-package
Flarts
Flutter Charts
Stars: ✭ 61 (+64.86%)
Mutual labels:  flutter-package
flutter dauth
A flutter package for authentication with DAuth(an OAuth2 based SSO (Single Sign On) for NITT students) authorisations service on behalf of the resource-owner/user.
Stars: ✭ 36 (-2.7%)
Mutual labels:  flutter-package
FlutterLoadingGIFs
Loading indicator GIFs. Material and Cupertino (Android and iOS) loading indicators in assorted sizes. Use as placeholders for loading remote image assets. Demo: https://gallery.codelessly.com/flutterwebsites/loadinggifs/
Stars: ✭ 28 (-24.32%)
Mutual labels:  flutter-package
achievement view flutter
No description or website provided.
Stars: ✭ 75 (+102.7%)
Mutual labels:  flutter-package
flutter section table view
A iOS like table view including section, row, section header and divider
Stars: ✭ 73 (+97.3%)
Mutual labels:  flutter-package
gen lang
gen_lang is a dart library for internationalization. Extracts messages to generate dart files required by Intl, inspired by Intl_translation and Flutter i18n
Stars: ✭ 94 (+154.05%)
Mutual labels:  flutter-package
Motion-Tab-Bar
A beautiful animated flutter widget package library. The tab bar will attempt to use your current theme out of the box, however you may want to theme it.
Stars: ✭ 237 (+540.54%)
Mutual labels:  flutter-package
Flutter-Chat-Bar
Link to the package -. https://pub.dartlang.org/packages/flutter_chat_bar
Stars: ✭ 39 (+5.41%)
Mutual labels:  flutter-package
flex color scheme
A Flutter package to make and use beautiful color scheme based themes.
Stars: ✭ 370 (+900%)
Mutual labels:  flutter-package
Flogs
An Advanced Logging Framework develop in flutter that provides quick & simple logging solution.
Stars: ✭ 158 (+327.03%)
Mutual labels:  flutter-package
incrementally loading listview
An extension of the Flutter ListView widget for incrementally loading items upon scrolling
Stars: ✭ 172 (+364.86%)
Mutual labels:  flutter-package

flutter_floating_menu

Download

A new Flutter package which helps developers in creating Floating Menu.

Getting Started

Screenshot

Usage

Example

To use this package :

  dependencies:
    flutter:
      sdk: flutter
    flutter_floating_menu: ^0.0.2

Quick Start:

In order to use Floating Menu Widget in your Application you will have to Put this widget inside the Stack Widget as below.

    Stack(
        children: <Widget>[
          //Other widgets,
          FloatingMenu(
            menuList: floatMenuList,
            callback: this,
            btnBackgroundColor: Colors.black,
            preMenuIcon: Icons.add,
            postMenuIcon: Icons.clear,
          ),
        ],
      )
      

Example - How to use:

class _FloatingMenuExampleState extends State<FloatingMenuExample>
    implements FloatingMenuCallback {
  String centerText = "Home";

  @override
  Widget build(BuildContext context) {
  
    // here we have a list of Floating menu items
    final List<FloatingMenuItem> floatMenuList = [
      FloatingMenuItem(id: 1, icon: Icons.favorite, backgroundColor: Colors.deepOrangeAccent),
      FloatingMenuItem(id: 2, icon: Icons.map, backgroundColor: Colors.brown),
      FloatingMenuItem(id: 3, icon: Icons.email, backgroundColor: Colors.indigo),
      FloatingMenuItem(id: 4, icon: Icons.event, backgroundColor: Colors.pink),
      FloatingMenuItem(id: 5, icon: Icons.print, backgroundColor: Colors.green),
      FloatingMenuItem(id: 6, icon: Icons.home, backgroundColor: Colors.deepPurple),
    ];

    return Scaffold(
      resizeToAvoidBottomPadding: true,
      appBar: AppBar(
        title: Text(widget.title),
      ),
      // add FloatingMenu Widget inside the Stack widget
      body: Stack(
        children: <Widget>[
          Center(
            child: Text(
              centerText,
              style: TextStyle(color: Colors.black),
            ),
          ),
          FloatingMenu(
            menuList: floatMenuList,
            callback: this,
            btnBackgroundColor: Colors.black,
          ),
        ],
      ),
    );
  }

  @override
  void onMenuClick(FloatingMenuItem floatingMenuItem) {
    
    // callback listener, Perform your operations here
    
    print("onMenuClicked : " + floatingMenuItem.id.toString());
    switch (floatingMenuItem.id) {
      case 1:
        {
          centerText = "Favorite";
        }
        break;
      case 2:
        {
          centerText = "Map";
        }
        break;
      case 3:
        {
          centerText = "Email";
        }
        break;
      case 4:
        {
          centerText = "Event";
        }
        break;
      case 5:
        {
          centerText = "Print";
        }
        break;
      case 6:
        {
          centerText = "Home";
        }
        break;
    }

    setState(() {});
  }
}

Questions?

Ping-Me on : Twitter Facebook

profile for Uttam Panchasara at Stack Overflow, Q&A for professional and enthusiast programmers

Donate

If you found this package helpful or you learned something from the source code and want to thank me, consider buying me a cup of

  • Google Pay (panchasarauttam@okaxis)

License

   Copyright 2019 Uttam Panchasara

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].