We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The children of SpeedDial are displayed incorrectly.
Image:
Code:
import 'package:flutter/material.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; import 'package:flutter_speed_dial/flutter_speed_dial.dart'; void main() => runApp(const MyApp()); class MyApp extends StatefulWidget { const MyApp({Key? key}) : super(key: key); @override _MyAppState createState() => _MyAppState(); } class _MyAppState extends State<MyApp> { var theme = ValueNotifier(ThemeMode.dark); @override Widget build(BuildContext context) { const appTitle = 'Flutter Speed Dial Example'; return ValueListenableBuilder<ThemeMode>( valueListenable: theme, builder: (context, value, child) => MaterialApp( locale: Locale('ar'), supportedLocales: [Locale('ar')], localizationsDelegates: const [ GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate, GlobalCupertinoLocalizations.delegate, ], title: appTitle, home: MyHomePage(theme: theme), debugShowCheckedModeBanner: false, theme: ThemeData( brightness: Brightness.light, primaryColor: Colors.blue, ), darkTheme: ThemeData( brightness: Brightness.dark, primaryColor: Colors.lightBlue[900], ), themeMode: value, )); } } class MyHomePage extends StatefulWidget { final ValueNotifier<ThemeMode> theme; const MyHomePage({Key? key, required this.theme}) : super(key: key); @override _MyHomePageState createState() => _MyHomePageState(); } class _MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin { var extend = false; var customDialRoot = false; var isDialOpen = ValueNotifier<bool>(false); @override Widget build(BuildContext context) { final mediaQuery = MediaQuery.of(context); final maxWidth = mediaQuery.size.width - 32; return WillPopScope( onWillPop: () async { if (isDialOpen.value) { isDialOpen.value = false; return false; } return true; }, child: Scaffold( appBar: AppBar( title: const Text("Flutter Speed Dial Example"), ), floatingActionButton: SpeedDial( icon: Icons.more_vert_rounded, activeIcon: Icons.close_rounded, curve: Curves.bounceIn, overlayOpacity: 0.5, openCloseDial: isDialOpen, switchLabelPosition: Directionality.of(context) == TextDirection.rtl, children: [ SpeedDialChild( backgroundColor: Colors.red, foregroundColor: Colors.white, labelWidget: Container( constraints: BoxConstraints(maxWidth: maxWidth), child: OutlinedButton( onPressed: () {}, child: const Text('First 111111111111'), ), ), ), SpeedDialChild( backgroundColor: Colors.deepOrange, foregroundColor: Colors.white, labelWidget: Container( constraints: BoxConstraints(maxWidth: maxWidth), child: OutlinedButton( onPressed: () {}, child: const Text('Second 222'), ), ), ), SpeedDialChild( backgroundColor: Colors.indigo, foregroundColor: Colors.white, labelWidget: Container( constraints: BoxConstraints(maxWidth: maxWidth), child: OutlinedButton( onPressed: () {}, child: const Text('Third 333333333333333333333'), ), ), visible: true, ), ], ), ), ); } } extension EnumExt on FloatingActionButtonLocation { /// Get Value of The SpeedDialDirection Enum like Up, Down, etc. in String format String get value => toString().split(".")[1]; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The children of SpeedDial are displayed incorrectly.
Image:
![image](https://private-user-images.githubusercontent.com/57900109/377031859-61622153-d0d0-46dd-bf73-164b5c351345.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjM0MzIsIm5iZiI6MTczOTM2MzEzMiwicGF0aCI6Ii81NzkwMDEwOS8zNzcwMzE4NTktNjE2MjIxNTMtZDBkMC00NmRkLWJmNzMtMTY0YjVjMzUxMzQ1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDEyMjUzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM1MDRmMWZlMmY3ZTA5ZGI3YzM1MzY5MGUyMmZiOTljODdlNzcyMDNlYzlhODczNGI3MmNmNjkxMjNmMjNlYzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.j_YYqP4g5ms8MMwhjdBcFeNKCcpDvI21ZYAHzMTKUA0)
Code:
The text was updated successfully, but these errors were encountered: