Giter Club home page Giter Club logo

cabin_booking's People

Contributors

albertmir avatar albertms10 avatar chdzma avatar dependabot[bot] avatar

Stargazers

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

Watchers

 avatar  avatar

cabin_booking's Issues

[Bug] Floating SnackBar presented off screen

Describe the bug

════════ Exception caught by rendering library ═════════════════════════════════
The following assertion was thrown during performLayout():
Floating SnackBar presented off screen.

A SnackBar with behavior property set to SnackBarBehavior.floating is fully or partially off screen because
some or all the widgets provided to Scaffold.floatingActionButton, Scaffold.persistentFooterButtons and
Scaffold.bottomNavigationBar take up too much vertical space.

Consider constraining the size of these widgets to allow room for the SnackBar to be visible.

The relevant error-causing widget was
Scaffold

To Reproduce

Steps to reproduce the behavior:

  1. Start the app
  2. Go to the Bookings page
  3. Create a new Booking
  4. See the error

Expected behavior

The SnackBar is visible after creating the booking.

System information

  • Device: MacBook Pro
  • OS: macOS 13.2.1
  • Flutter version: 3.7.6

Backspace not working in form fields

Steps to reproduce

  1. Add a new cabin / new booking
  2. Type something in one of the text fields
  3. Try to delete characters with the backspace key

Expected

Can delete characters with backspace normally.

Actual

Backspace doesn't work.

Can't access to 'Cabins' page

I started facing an issue in the main branch that doesn't let me enter the 'Cabins' page. Can please you check if you have the same error?

Steps to reproduce it:

  1. Reinstall the App
  2. Create a new cabin
  3. Create a new event in the calendar for the current time (using the + sign shortcut)
  4. Go back to the cabins page
  5. The following error will appear:

Edited:
Bug caused in: lib/widgets/cabin/cabins_table.dart
L69: cabin.mostOccupiedTimeRange()

And the same happens for Courses:
Bug caused in: lib/widgets/school_year/school_years_table.dart
L59: cabinManager.mostOccupiedTimeRange(schoolYear)

[Bug] Cannot initialize the app when no school year data is present

Describe the bug

When starting the app with fresh school year data (e.g., the first time starting the app), a null cast error throws and prevents from initializing the app.

Exception screenshot

To Reproduce

Steps to reproduce the behavior:

  1. Empty the app data.
  2. Start the app.
  3. See the “Data could not be loaded” error message.

Expected behavior

The app starts with the default data loaded.

Screenshots

App screenshot

System information

  • Device: MacBook Pro
  • OS: macOS 12.6 Monterey
  • Flutter version: 3.3.8

type `(ItemsTableRow<Cabin>) => String` is not a subtype of type `(ItemsTableRow<Item>) => String`

While working with null-safety support (#6) in flutter channel stable, static IDE analysis seems to be working without warnings. However, when running the app, Flutter throws the following exception:

════════ Exception caught by widgets library ═══════════════════════════════════
type '(ItemsTableRow<Cabin>) => String' is not a subtype of type '(ItemsTableRow<Item>) => String'
The relevant error-causing widget was
ItemsTable<Cabin>
lib/…/cabin/cabins_table.dart:19
════════════════════════════════════════════════════════════════════════════════

Flutter seems to be failing to verify that Cabin is extending Item—which, indeed, it is.

Captura de Pantalla 2021-04-17 a les 23 42 35

Here, the itemTitle function has an ItemsTableRow<Cabin> row parameter, which contains an item member of type T extends Item—so, it must allow a Cabin object.

A summary of the stack:

return ItemsTable(
itemTitle: (row) => '${row.item.number}',
itemIcon: Icons.sensor_door,

Text(
widget.itemTitle?.call(row) ?? '',
style: theme.textTheme.headline5,

[Bug] Unknown error while using compute isolation

Describe the bug

After rewriting Lists as Sets in 5711a86 (using SplayTreeSet concrete implementation), compute isolation seems to be performing with issues.

final cabins = await compute(_parseCabins, content);

final schoolYears = await compute(_parseSchoolYears, content);

Expected behavior

The compute function correctly returns the expected result from JSON parse methods.

System information

  • Device: MacBook Pro
  • OS: macOS 12.6
  • Flutter version: 3.3.8

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.