Revert "Set IconButton.visualDensity default to VisualDensity.standard (#109349)" (#109421)

This reverts commit 3070baf175.
This commit is contained in:
Qun Cheng
2022-08-11 15:29:19 -07:00
committed by GitHub
parent 095f5daaac
commit 625d96a1c6
10 changed files with 49 additions and 121 deletions

View File

@@ -19,6 +19,10 @@ class IconButtonToggleApp extends StatelessWidget {
theme: ThemeData(
colorSchemeSeed: const Color(0xff6750a4),
useMaterial3: true,
// Desktop and web platforms have a compact visual density by default.
// To see buttons with circular background on desktop/web, the "visualDensity"
// needs to be set to "VisualDensity.standard".
visualDensity: VisualDensity.standard,
),
title: 'Icon Button Types',
home: const Scaffold(