Issue In Android, how to check programatically which secure element settings is selected in NFC Advanced Settings (SIM or eSE or HCE) ? Solution If you want the user to change it you can make it programmatically using this piece
Continue readingCategory: Flutter
How to alter state of one screen from another screen using Cubit in Flutter?
Issue I am new to flutter and I am using the Cubit from flutter_bloc package. I have this situation going here. I have screen-A as in diagram below where I show list of videos and the likes, comments connected with
Continue readingGetting type 'Null' is not a subtype of type 'BuildContext' while trying to push data from one flutter screen to another
Issue Here’s widget.dart Widget wallpapersList({required List<WallpaperModel> wallpapers, context}) { return Container( padding: EdgeInsets.symmetric(horizontal: 16), child: GridView.count( shrinkWrap: true, physics: ClampingScrollPhysics(), crossAxisCount: 2, childAspectRatio: 0.6, mainAxisSpacing: 6.0, crossAxisSpacing: 6.0, children: wallpapers.map((wallpaper) { return GridTile( child: GestureDetector( onTap: () { print(wallpaper.src!.portrait); //
Continue readingException has occurred. _TypeError (type 'List<String>' is not a subtype of type 'String')
Issue I’m trying to send a list from one page to another page in Flutter. I was able to see my list in Text first, but I couldn’t add it to a Wheel of Fortune using flutter_fortune_wheel 1.2.I couldn’t understand
Continue readingI am learning flutter from a book that seems outdated. What is the modern way of implementing this code?
Issue //VS code reads the error: The function can’t be unconditionally invoked because it can be ‘null’. Future<void> sendEmailVerification() async { User user = await _firebaseAuth.currentUser(); user.sendEmailVerification(); } ` adding a null check Future<String> currentUserUid() async { User user =
Continue readingThe following _CastError was thrown building FutureBuilder<DatabaseNote>
Issue I am encountering a _CastError in Flutter and I’m not sure what can cause it : ═══════ Exception caught by widgets library ═══════════════════════════════════ The following _CastError was thrown building FutureBuilder<DatabaseNote>(dirty, state: _FutureBuilderState<DatabaseNote>#aa5d0): type ‘Null’ is not a subtype of
Continue readingHow to sort/order a list by date in dart/flutter?
Issue I have the following list, that I am trying to re-order/ sort by the DateTime. import ‘package:intl/intl.dart’; //don’t forget to add under dependencies pubspec.yml “intl: ^0.15.8” List products = []; //adding into the new list from raw API list
Continue readingHow to make Elevated Button with Gradient background?
Issue I am trying to create an Elevated button with gradient background, But it provides some parameters that do not fit it well, and May you know that after Flutter 2.0 version most of the Button classes have been deprecated
Continue readingHow to customize tabBar?
Issue I want to make tapBar looking like this: But only got this: This is my code(DefaultTabContainer is wrapped with container with height: 600 and width: 300): DefaultTabController( length: 3, child: Scaffold( appBar: PreferredSize( preferredSize: Size.fromHeight(35.h), child: Container( margin: EdgeInsets.symmetric(horizontal:
Continue readingreading data from firebase firestore collection at stream builder
Issue I got trouble with firebase fireStore. There is a stream builder reading data from items collection. Inside items collection there is some fields and another collections. I haven’t any problem with fields, the problem is with collection. how to
Continue reading