Code Monkey home page Code Monkey logo

number_paginator's Introduction

header2

number_paginator's People

Contributors

ahmed-ata112 avatar t-unit avatar wiefel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

number_paginator's Issues

Add Text to the icons

Please add text to the icons on the next and previous pages.
For example: < Prev 1 2 3 4 5 6 7 8 9 10 Next >

Remove arrows option

Hello,
Can you please add a possibility to remove the next and previous arrows ?
or a disabled option like the button disabled option ?
thank you

skip button to the first page

I think it's needed to have a forward skip and dots like the implemented one, with customization to show either one or both.

Here is an example:

gg

Issue while implementing

/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/number_paginator-0.2.2/lib/src/ui/widgets/paginator_button.dart:34:13: Error: No named parameter with the name 'foregroundColor'.
foregroundColor: _foregroundColor(context, selected),
^^^^^^^^^^^^^^^
/fvm/default/packages/flutter/lib/src/material/text_button.dart:145:22: Context: Found this candidate, but the arguments don't match.
static ButtonStyle styleFrom({
^^^^^^^^^

Can`t build paginator when number of pages is 1

════════ Exception caught by widgets library ═══════════════════════════════════
The following ArgumentError was thrown building LayoutBuilder:
Invalid argument: 1

NumberPaginator(
    numberPages: 1,
),

flutter 3.3.3 (web)
number_paginator: ^0.2.1
os: MacOS 12.6

The named parameter 'config' isn't defined

Trying to add config: NumberPaginatorUIConfig( // default height is 48 height: 64, buttonShape: BeveledRectangleBorder( borderRadius: BorderRadius.circular(8), ),

and getting 'The named parameter 'config' isn't defined' / 'The method NumberPaginatorUIConfig isn't defined for type...'

Auto size text for arrow buttons

The default buttons size is too big for my phone in portrait mode (OnePlus 8T 1080x2400, but I think the viewport is 360x800) because the dots showing when navigating through pages make the numbers disappear.

Missing current page indicator when in page 2:
Missing current page indicator

Because of this issue I set the height of the buttons to 40, in order to make more room for the buttons and the dots, and I noticed that the text inside the buttons scales perfectly but not the arrows.

Arrows are not scaling:
Arrows are not scaling

Is it possibile to fix this?
Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.