Skip to content

Commit

Permalink
Upgrade to flutter 3.10.0 (#305) (#306)
Browse files Browse the repository at this point in the history
* Upgrade to flutter 3.10.0 (#305)

* #305 update formating
  • Loading branch information
BenPoell authored May 20, 2023
1 parent aab6fd4 commit 136100a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class _MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text("SpeedDial Location",
style: Theme.of(context).textTheme.bodyText1),
style: Theme.of(context).textTheme.bodyLarge),
const SizedBox(height: 10),
Container(
decoration: BoxDecoration(
Expand Down Expand Up @@ -128,10 +128,10 @@ class _MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin {
items: items.map((item) {
return DropdownMenuItem<
FloatingActionButtonLocation>(
value: item,
child: Text(
item.value,
),
value: item,
);
}).toList(),
),
Expand All @@ -147,7 +147,7 @@ class _MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text("SpeedDial Direction",
style: Theme.of(context).textTheme.bodyText1),
style: Theme.of(context).textTheme.bodyLarge),
const SizedBox(height: 10),
Container(
decoration: BoxDecoration(
Expand Down Expand Up @@ -202,8 +202,8 @@ class _MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin {
.toList()
.map((item) {
return DropdownMenuItem<SpeedDialDirection>(
child: Text(describeEnum(item).toUpperCase()),
value: item,
child: Text(describeEnum(item).toUpperCase()),
);
}).toList(),
),
Expand Down Expand Up @@ -370,7 +370,7 @@ class _MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text("Navigation",
style: Theme.of(context).textTheme.bodyText1),
style: Theme.of(context).textTheme.bodyLarge),
const SizedBox(height: 10),
ElevatedButton(
onPressed: () {
Expand Down Expand Up @@ -512,7 +512,7 @@ class _MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin {
valueListenable: isDialOpen,
builder: (ctx, value, _) => IconButton(
icon: const Icon(Icons.open_in_browser),
tooltip: (!value ? "Open" : "Close") + " Speed Dial",
tooltip: (!value ? "Open" : "Close") + (" Speed Dial"),
onPressed: () => {isDialOpen.value = !isDialOpen.value},
))
],
Expand Down
4 changes: 2 additions & 2 deletions lib/src/speed_dial.dart
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ class _SpeedDialState extends State<SpeedDial>
if (!mounted) return;

_controller.forward();
if (widget.renderOverlay) Overlay.of(context)!.insert(backgroundOverlay!);
Overlay.of(context)!.insert(overlayEntry!);
if (widget.renderOverlay) Overlay.of(context).insert(backgroundOverlay!);
Overlay.of(context).insert(overlayEntry!);
}

if (!mounted) return;
Expand Down

0 comments on commit 136100a

Please sign in to comment.