Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add padding
  • Loading branch information
buenaflor committed Nov 30, 2023
commit 72de1326467f877a39e6439fb8a92e13e0e96c2a
11 changes: 10 additions & 1 deletion flutter/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,16 @@ class MainScaffold extends StatelessWidget {
if (UniversalPlatform.isIOS || UniversalPlatform.isMacOS)
const CocoaExample(),
if (UniversalPlatform.isAndroid) const AndroidExample(),
],
].map((widget) {
if (kIsWeb) {
// Add vertical padding to web so the tooltip doesn't obstruct the clicking of the button below.
return Padding(
padding: const EdgeInsets.only(top: 18.0, bottom: 18.0),
child: widget,
);
}
return widget;
}).toList(),
),
),
);
Expand Down