mirror of
https://github.com/foss42/apidash.git
synced 2025-06-02 16:02:12 +08:00
fix(mobile): removed Settings headline and divider in case of mobile platform using in widget terenary operators
This commit is contained in:
@ -26,9 +26,11 @@ class _SettingsPageState extends ConsumerState<SettingsPage> {
|
|||||||
padding: kPh20t40,
|
padding: kPh20t40,
|
||||||
shrinkWrap: true,
|
shrinkWrap: true,
|
||||||
children: [
|
children: [
|
||||||
Text("Settings",
|
kIsDesktop
|
||||||
style: Theme.of(context).textTheme.headlineLarge),
|
? Text("Settings",
|
||||||
const Divider(),
|
style: Theme.of(context).textTheme.headlineLarge)
|
||||||
|
: const SizedBox.shrink(),
|
||||||
|
kIsDesktop ? const Divider() : const SizedBox.shrink(),
|
||||||
SwitchListTile(
|
SwitchListTile(
|
||||||
contentPadding: EdgeInsets.zero,
|
contentPadding: EdgeInsets.zero,
|
||||||
hoverColor: kColorTransparent,
|
hoverColor: kColorTransparent,
|
||||||
|
Reference in New Issue
Block a user