Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A simple animated radial menu widget for Flutter.

License

NotificationsYou must be signed in to change notification settings

xqwzts/flutter_radial_menu

Repository files navigation

pub package

flutter_radial_menu

A radial menu widget for Flutter.

.

Installation

Install the latest versionfrom pub.

Quick Start

Import the package, create aRadialMenu and pass it yourRadialMenuItems.

import'package:flutter/material.dart';import'package:flutter_radial_menu/flutter_radial_menu.dart';voidmain() {runApp(newMaterialApp(      home:newScaffold(        body:newCenter(          child:newRadialMenu(            items:<RadialMenuItem<int>>[constRadialMenuItem<int>(                value:1,                child:constIcon(Icons.add),              ),constRadialMenuItem<int>(                value:-1,                child:constIcon(Icons.remove),              )            ],            radius:100.0,            onSelected: print,          ),        ),      ),    ),  );}


Take a look at thedemo for a more elaborate example.


Customization

RadialMenuItem

ParameterDefaultDescription
childnullUsually an Icon widget, gets placed in the center of the button.
valuenullValue that gets returned when this item is selected.
tooltipnullTooltip displayed when the button is long-pressed.
size48.0Size of the button.
backgroundColorTheme.of(context).primaryColorBackground fill color of the button.
iconColorTheme.of(context).primaryIconTheme.colorThe color of the child icon.

RadialMenu

ParameterDefaultDescription
itemsnullThe list of possible items to select from.
onSelectednullCalled when the user selects an item.
radius100.0The radius of the arc used to lay out the items and draw the progress bar.
menuAnimationDuration1000 millisecondsDuration of the menu opening/closing animation.
progressAnimationDuration1000 millisecondsDuration of the action activation progress arc animation.

About

A simple animated radial menu widget for Flutter.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp