Giter Site home page Giter Site logo

iliyass-zamouri / flutter_agenda Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 5.0 17.19 MB

Flutter Agenda View Package (pub.dev)

Home Page: https://pub.dev/packages/flutter_agenda

License: MIT License

Kotlin 0.62% Swift 0.61% Objective-C 0.06% Dart 98.06% Batchfile 0.66%
agenda dart flutter flutteragenda package pubdev

flutter_agenda's People

Contributors

iliyass-zamouri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

flutter_agenda's Issues

Rendering issues - Adding multiple Resources at a time (scrollController)

Describe the bug
Adding or substracting one or multiple resources, produce a scrolling controllers issues.

To Reproduce
Steps to reproduce the behavior:

  • setState a add resource to list event

Expected behavior
Handle scrollers internally

Additional context
Check if the list of controllers match up with the resources list.

Handling timeslots overday

I'd like to use this nice widget to handle a 24/7 queue system. Unfortunately, the EventTime enforce all the events to be on same day

Describe the solution you'd like
I'd like to be able to have a timetabl goping over day. For example from Monday 00:00 til Tuesday 23h59. Today an event from Monday 22h00 to Tuesday 3:00 cannot be set because EventTime do not consider the day and then 3AM is NOT AFTER 10PM

BidirectionalScroll - Enhancing the Performance

Is your feature request related to a problem? Please describe.
Scroll Problem linked to the diagonal scroll behavior.

Describe the solution you'd like
Switching from the diagonal to bidirectional scrolling.

Describe alternatives you've considered
Using the linked_scroll_controllers, for both horizontal & vertical Axis.

RTL UI rendering issues

Hi there,
Just started using this package for my app that supports RTL layout, and encountered some issues.

  1. Error when scrolling the UI horizontally and then vertically:
======== Exception caught by gesture ===============================================================
The following _CastError was thrown while handling a gesture:
Null check operator used on a null value

When the exception was thrown, this was the stack: 
#0      _FlutterAgendaState._buildMainContent.<anonymous closure>.<anonymous closure> (package:flutter_agenda/src/views/agenda_screen.dart:165:49)
#1      PillarView.build.<anonymous closure> (package:flutter_agenda/src/views/pillar_view.dart:31:45)
#2      TapGestureRecognizer.handleTapDown.<anonymous closure> (package:flutter/src/gestures/tap.dart:581:61)
#3      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:198:24)
#4      TapGestureRecognizer.handleTapDown (package:flutter/src/gestures/tap.dart:581:11)
#5      BaseTapGestureRecognizer._checkDown (package:flutter/src/gestures/tap.dart:287:5)
#6      BaseTapGestureRecognizer.didExceedDeadline (package:flutter/src/gestures/tap.dart:258:5)
#7      PrimaryPointerGestureRecognizer.didExceedDeadlineWithEvent (package:flutter/src/gestures/recognizer.dart:591:5)
#8      PrimaryPointerGestureRecognizer.addAllowedPointer.<anonymous closure> (package:flutter/src/gestures/recognizer.dart:535:41)
(elided 11 frames from class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)
Handler: "onTapDown"
Recognizer: TapGestureRecognizer#60ba6
  debugOwner: GestureDetector
  state: possible
  button: 1
====================================================================================================

  1. When reaching the top/bottom limit and trying to scroll the right side tries to scroll with laggy UI, and also you can just scroll the right pane which is strange.
  2. The AgendaEvent UI is cut out on the right edge of the first Resource so text is not fully displayed.
  3. The horizontal dividers of the panes doesn't share the same thickness and the same height.

Code I used:

FlutterAgenda(
      resources: [
        Resource(
          head: Header(title: 'מרסל אוחנה', object: 1, color: Colors.yellow),
          events: [
            AgendaEvent(
              title: 'תור לציפורניים - יוסי שיטרית',
              start: EventTime(hour: 18, minute: 00),
              end: EventTime(hour: 19, minute: 00),
            ),
          ],
        ),
        Resource(
          head: Header(title: 'מוגוטה', object: 2, color: Colors.yellow),
          events: [
            AgendaEvent(
              title: 'תור לציפורניים - יוסי שיטרית',
              start: EventTime(hour: 18, minute: 00),
              end: EventTime(hour: 19, minute: 00),
            ),
          ],
        ),
      ],
      agendaStyle: AgendaStyle(
        startHour: 9,
        endHour: 24,
        headerLogo: HeaderLogo.bar,
        timeItemWidth: 45,
        timeSlot: TimeSlot.full,
        decorationLineBorderColor: Colors.transparent,
      ),
    )

Simulator Screen Shot - iPhone 13 Pro - 2022-04-20 at 15 36 16

Simulator.Screen.Recording.-.iPhone.13.Pro.-.2022-04-20.at.15.45.45.mp4

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.