Comments (11)
Stable channel with intl : 0.18.1 is OK! So we have a problem with the Beta channel Version.
We could Close this Issue but need to keep an eye to the Beta Branch.
from circular_menu.
I have tested the Circular Menu FAB on iOS release mode, and it seems to work fine. Have you checked whether the issue is related to something else in your code? @securexperts
from circular_menu.
Hi, yes, I have tested and could exclude other modules in my code. The Fact is, that it is not happening when I run the code on my machine or local Phone. It only happens, when I push the code to Apple's TestFlight. Here some additional information about my environment:
Flutter is already up to date on channel beta
Flutter 3.22.0-0.1.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 29babcb32a (10 days ago) • 2024-04-03 17:17:04 -0500
Engine • revision 97550907b7
Tools • Dart 3.4.0 (build 3.4.0-282.1.beta) • DevTools 2.34.2
here the whole function:
Widget showMainLViewUI(ThemeProvider themeProvider, TrailsProvider trailsProvider, SelectedMarkerProvider selectedMarkerProvider) {
if(Theme.of(context).brightness == Brightness.dark){
isStyleDark = true;
}
if (_colorIsActive == false){
_color = Theme.of(context).primaryColor.withOpacity(0.5);
} else {
_color = Theme.of(context).primaryColor.withOpacity(1.0);
}
return Scaffold(
floatingActionButtonLocation: Platform.isIOS
? FloatingActionButtonLocation.centerDocked
: FloatingActionButtonLocation.centerFloat,
floatingActionButton: CircularMenu(
toggleButtonColor: Theme.of(context).primaryColor.withOpacity(0.6),
toggleButtonAnimatedIconData: AnimatedIcons.menu_close,
items: [
CircularMenuItem(
icon: Icons.add_location_alt,
iconColor: Colors.transparent,
color: Colors.transparent,
onTap: () {}
),
CircularMenuItem(
icon: Icons.directions_walk,
color: _color,
onTap: () {
setState(() {
if (_colorIsActive == true){
_colorIsActive = false;
} else {
_colorIsActive = true;
}
trackUserLocation = !trackUserLocation;
if (kDebugMode) {
print('OnTap_001.1: $trackUserLocation');
}
});
}
),
CircularMenuItem(
icon: Icons.add_location,
color: Theme.of(context).primaryColor.withOpacity(0.6),
onTap: () {
setState(() {
setCameraPosition();
if (kDebugMode) {
print('OnTap_001.2');
}
});
}
),
CircularMenuItem(
icon: Icons.add_location_alt,
iconColor: Colors.transparent,
color: Colors.transparent,
onTap: () {}
),
],
),
body: Stack(
children: [
MapWidget(
key: const ValueKey("ZadaMap"),
styleUri: isStyleDark
? ZadaApp.mapboxMapStyleDark
: ZadaApp.mapboxMapStyleLight,
textureView: true,
cameraOptions: CameraOptions(
center: Point(coordinates: Position(6.927500, 46.414200)).toJson(),
zoom: 18,
pitch: mapPitchValue,
bearing: 0
),
mapOptions: MapOptions(
pixelRatio: MediaQuery.of(context).devicePixelRatio,
),
gestureRecognizers: <Factory<OneSequenceGestureRecognizer>>{
Factory<OneSequenceGestureRecognizer>(
() => EagerGestureRecognizer(),
),
},
onMapCreated: _onMapCreated,
onStyleLoadedListener: _onStyleLoadedCallback,
onCameraChangeListener: _onCameraChangeListener,
onRenderFrameStartedListener: _onRenderFrameStartedListener,
onScrollListener: _onScrollAction,
),
Positioned(
bottom: 100.0, // adjust the position as needed
right: 16.0, // adjust the position as needed
child: Offstage(
offstage: !trailsProvider.trailIsActive,
child: FloatingActionButton(
backgroundColor: _color,
onPressed: () {
if (kDebugMode) {
print('onPressed_001.3');
}
trailsAreLoaded = false;
trailsProvider.disableActiveTrail();
},
child: const Icon(Icons.exit_to_app), // customize the icon as needed
),
),
),
],
),
);
}
Pubspec.yaml
environment:
sdk: '>=3.2.0 <4.0.0'
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
circular_menu: ^3.0.0
cupertino_icons: ^1.0.6
easy_localization: ^3.0.5
equatable: ^2.0.5 # used by easy_localization
flutter_compass: ^0.8.0
hive_flutter: ^1.1.0
hive: ^2.2.3
intl: ^0.19.0
json_annotation: ^4.8.1
lottie: ^3.1.0
mapbox_maps_flutter: ^1.1.0
modal_bottom_sheet: ^3.0.0
palette_generator: ^0.3.3+3
permission_handler: ^11.3.1
dev_dependencies:
flutter_test:
sdk: flutter
build_runner: ^2.4.9
flutter_lints: ^3.0.2
hive_generator: ^2.0.1
json_serializable: ^6.7.1
from circular_menu.
Hi, would you mind trying the Flutter stable channel and see if the issue persists? since the beta channel is not recommended for production.
@securexperts
from circular_menu.
I'm glad to hear it worked. There may be an issue with the beta branch, but it's likely to be resolved before merging with the stable branch. I'll close this issue for now.
from circular_menu.
Related Issues (20)
- Badge to CircularMenuItem HOT 1
- CircularMenuItem not trigger onTab HOT 1
- startingAngleInRadian and endingAngleInRadian can not be null HOT 8
- Dart null support HOT 1
- CircularMenuItem need to open by default instead of waiting for user to click HOT 2
- Need an option to add my own custom widget with my own icon image HOT 2
- How to know is menu opened or no? HOT 2
- User image instead of menu icon. HOT 2
- [question] How to disable an item HOT 2
- ontab fungerar inte HOT 2
- Widget instead of animated icon data HOT 2
- Upgrade for Flutter 3.0 HOT 1
- How To Implement in Bottom Navigation Bar HOT 2
- New Requirement: When Click a CircularMenuItem then reduce Circular to its original state HOT 3
- how to change the three stripes icon? HOT 2
- Feature Request: Add a submenu HOT 2
- Icon HOT 3
- Image as icon, close menu ontap HOT 8
- How to add tooltip for items? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from circular_menu.