how can I make a shape like this in flutter
I dont want to use package for navigation.I just want to create this shape.could you help me?
I dont want to use package for navigation.I just want to create this shape.could you help me?
These are the values read by sensor Im trying to fetch these values from this database and use them in my application developed using flutter. But idk how. Any help is appreciated. language used is dart. I need to read…
I'm working on a Flutter project in which the architecture forces me to use an instance of a class, say UserModel, as a value attached to the BuildContext. In this way, I can access that class in every part of…
I'm using a StateProvider from Riverpod, it's a Map because it's an app to play various sounds simultaneously with just_audio, and I'm matching the player instance with the specific sound assigned on that player in <k,v> this one: final soundsPlayingProvider…
I am building a project in flutter and encountered this error that is mentioning the Null check operator, but I am not using a null check operator. I have tried all the suggestions I could find in other posts. flutter…
Here is my Custom reusable Widget code. import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; class MyFloatingActionButton extends ConsumerWidget { final Function(ProviderRef ref) onPressed; MyFloatingActionButton(this.onPressed); @override Widget build(BuildContext context, WidgetRef ref) { return FloatingActionButton( onPressed: () => onPressed, tooltip: 'Increment', child: Icon(Icons.add), ); }…
I have this code : FutureBuilder( future: _data, builder: (context, AsyncSnapshot snapshot) { if (!snapshot.hasData) { return const Center(child: CustomLoadingAnimation()); } else { var data = snapshot.data; return Container( decoration: BoxDecoration( color: primaryFlashColor, borderRadius: BorderRadius.circular(20)), height: 14.h, width: 100.w, child:…
I want to take the product(entry) id in the database as the ['id'] of the object in the code, but I get this error code database Future<void> fetchAndSetProducts() async { final url = Uri.parse('https://flutter-update.firebaseio.com/products.json'); try { final response = await…
I have the following data frame: AA3200010013000CAAAA000000000000000000043000010156EF79 "EF 79" is supposed to be the checksum. but I am not very sure how to get this value. in the documentation it says: Checksum: data CRC16 checksum except for frame head. The…
I am trying to call this method but TempReceiptModel.fromJSON is not being called. Future<TempReceiptModel?> getTempReceipt({ required UserModel? user, }) async { TempReceiptModel? tempReceipt; try { // print(tempReceipt.) SharedPreferences prefs = await SharedPreferences.getInstance(); String? accessToken = prefs.getString('accesstoken'); String? userID = user?.user_id;…