albertms10 / cabin_booking Goto Github PK
View Code? Open in Web Editor NEWA multiplatform app for booking cabins
License: MIT License
A multiplatform app for booking cabins
License: MIT License
════════ 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
Steps to reproduce the behavior:
The SnackBar is visible after creating the booking.
Can delete characters with backspace normally.
Backspace doesn't work.
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:
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)
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.
Steps to reproduce the behavior:
The app starts with the default data loaded.
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.
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:
cabin_booking/lib/widgets/cabin/cabins_table.dart
Lines 19 to 21 in 086b28d
cabin_booking/lib/widgets/item/items_table.dart
Lines 196 to 198 in 086b28d
After rewriting Lists as Sets in 5711a86 (using SplayTreeSet
concrete implementation), compute
isolation seems to be performing with issues.
cabin_booking/lib/model/cabin_manager.dart
Line 247 in 036022a
The compute
function correctly returns the expected result from JSON parse
methods.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.