Skip to content

AliDeeb/upload-button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upload button

Upload button is a flutter widget that presents a button with a progress drawn as an arc around it.

Example

preview.mp4
UploadButton(
      width: 180,
      height: 65,
      progressValue: 0.5,
      onTap: () {},
      color: const Color(0xFF0969E7),
      borderRadius: 100,
      strokeColor: const Color.fromARGB(120, 9, 105, 231),
      strokeWidth: 8,
      child: Padding(
        padding: const EdgeInsetsDirectional.only(start: 25),
        child: Row(
          children: [
            const Icon(
              Icons.arrow_upward_rounded,
              color: Colors.white,
              size: 30,
            ),
            const SizedBox(width: 10),
            Text("Upload", style: style),
          ],
        ),
      ),
    ),
  • width - The width of the button.
  • height - The height of the button.
  • progressValue - Value of the progress between 0 and 1.
  • onTap - Tap callback of button.
  • color - The color of the button.
  • borderRadius - The borderRadius of the button.
  • strokeColor - The color of the progress around of button.
  • strokeWidth - The width of the progress.
  • child - The child of the button.

Connect with me

LinkedIn

Built with

flutter dart

Contributions

All contributions are welcome!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors