preventDefault does not work on focus event

I am trying to design a form such that if it has a certain class, the user should not be able to interact with any of the inputs. For various reasons, I would like to avoid using the "disabled"...

Android: reuse datepicker

I need help with a DatePicker.I followed the tutorial developer/android.com and I created my datepicker. The problem is that I need to use the datepicker in almost all my actiity.. So, how do I...

Qt C++ Drawing and Animation

I am a newbie to Qt. And I have this problem for which I want to have a method to solve. I want to draw a road network, that remains static throughout the execution of the program. On this road...

Communicate classes via tkinter's bind method

I'm developing a package with GUI using tkinter. Now there is a problem when communicating classes via tkinter's bind method. A simple code which represents what I want to do is listed...

Add custom options to symfony form

1 What i want to do is add custom (option is 'angular' in this case)option to my form widget template: {%- block widget_attributes -%} id="{{ id }}" name="{{ full_name }}" {%- if angular...

How can you adjust Android SnackBar to a specific position on screen

Follwing the new android snackbar, i'm trying to set it to be positioned on a specific y coordinate. Its seems to be not even a possible. I've tried with getting the parent of the snackbar's view,...

Adding CSS class to div with unique ID

So, I am really new to CSS. I am developing a site for the company I work for using WordPress. I know, WordPress "NOOB ALERT." Anyway, I am using the massive dynamic theme and was hoping to get...

Displaying notification badge on BottomNavigationBar's Icon

I'd like to display notification badge (a colored marble) on the top right corner of BottomNavigationBar's Icon widget when a new message has arrived in the inbox tab. It is similar to...

Django Autocomplete Light List Object has no Attribute Queryset

Please look at my edits at the end of my code as well. I'm attempting to implement django-autocomplete-light (dal 3.2.10) for a single field. Following the tutorial, I turn up this error: 'list'...

From jQuery to flutter/dart - $.ajax

im new to flutter/dart and was wondering how to convert this js to flutter/dart ? I have looked at lots of flutter/dart tutorials, but all are just how to render stuff using widgets, i have not...

Custom Card Shape Flutter SDK

I just started learning Flutter and I have developed an app with GridView. GridView items are Card. Default card shape is Rectangle with a radius of 4. I know there is shape property for Card...

Window is Full error in Flutter

When loading data from Firestore into a listview, i receive this warning W/CursorWindow(15035): Window is full: requested allocation 483 bytes, free space 274 bytes, window size 2097152 bytes I...

flutter stepper widget - validating fields in individual steps

i am using stepper widget in order to collect info from user and validate it, i need to call an API at each step hence validate each field in a step at every continue button ... i am using form...

cpu temp widget in awesome wm

I recently started using awesome wm version 4.2 and really like it; has significantly improved my workflow. I tried some themes like copycats and others but they're too fancy for me. I like the...

Flutter: _InternalLinkedHashMap has no instance > method 'cast'

Sthg makes me crazy, I try to show json products in cards and it doesn't work. Here is what I tried so far: Product class : class Product { final String id; Product({this.id}); factory...

C# swagger documentation for individual members of the request body object

We are writing swagger documentation using /// comments in the following way: /// <summary> /// Create a new widget /// </summary> /// <param...

ViewPager2 | View.ClickListener not called

I use new android widget ViewPager2 version 1.0.0-alpha03 and when I set click listener on it method onClick() not called. My Actvity class: class MainActivity : AppCompatActivity() { override...

python : tkinter treeview colors are not updating

This is my first post, please excuse me if I made mistake in the format, I will gladly change it if required. I'm creating an interface for scientific datas analysis using Tkinter. For a list of...

Assign a value from excel to a html input box through excel vba

I have some ISIN-codes from bonds in an excel sheet (column A). I would like to find the corresponding rating from the site https://www.moodys.com. As this should be done on a regular basis, I...

How to unit test whether the ChangeNotifier's notifyListeners was called in Flutter/Dart?

I'm using the provider package in our app and I want to test my ChangeNotifier class individually to have simple unit tests checking the business logic. Apart from the values of ChangeNotifier...

How to reach a variable of a class from another class in Flutter

I have a stateful widget which includes buttons. I'm keeping number of user taps in an int variable called "counter". I have another widget which is my home screen. I have a Text on that screen. I...

How to fix black screen in flutter while Navigating?

I am creating a multi-paged app on flutter. When I am using the navigation in it, I am getting a black screen. import 'package:flutter/material.dart'; void main() =>...

Flutter Bloc state change is not updated UI with get_it

I've been building a login/authentication feature using a combination of this login tutorial and the resocoder clean architecture tutorials. It's 99% working perfectly, but it is not responding...

problem in flutter with fireStore in QuerySnapshot its always null

i wil put all the code below this explanation so i just create a CollectionReference like this in class DataBaseServices final CollectionReference brewCollection = ...

Flutter Bad State No Element

I am trying to delete my data from a database, and proceed to navigate to my homepage if it succeeds. Below are my code: StatelessWidget that consist of deleteFromDatabase method which passed an...

how to make a bloc builder build a widget when its not on screen?

Okay so Its kinda tough for me to explain but I will try my best. I am trying to make an app that follows Bloc state management. Right now, I have a bloc class that controls a bottom navigation...

Dispatch first bloc event or cubit method, on page start inside StatelessWidget

I have 10 buttons in main menu of my app and each of them contains BlocBuilder inside them. So when I click on those buttons to open a new page, I want to dispatch the first event, but I don't...

Best practice for BLoC pattern in Dart/Flutter

When using a the BLoC pattern in Flutter, what is considered good programming practice when it comes to structuring your application code? This is a loose question so I will try to give an...

Flutter generating errors for pub-cache

I just had to take over a Flutter project from some devs I have no contact with ... Flutter doctor all checks out ... The error are all in pub-cache. I tried flutter clean, flutter pub get ......

Flutter Navigator 2.0 - Router does not receive deep link when app is launched from URL?

I'm using Flutter Navigator 2.0 with Nested Routers - there's a main router created by calling MaterialApp.router() and child routers created as Router() widgets with proper RouterDelegates (child...