fix: add subtitle for flash button
parent
add2366e6b
commit
c987779842
|
@ -1,4 +1,5 @@
|
||||||
import 'package:auto_route/auto_route.dart';
|
import 'package:auto_route/auto_route.dart';
|
||||||
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:ionicons/ionicons.dart';
|
import 'package:ionicons/ionicons.dart';
|
||||||
import 'package:selfprivacy/logic/cubit/client_jobs/client_jobs_cubit.dart';
|
import 'package:selfprivacy/logic/cubit/client_jobs/client_jobs_cubit.dart';
|
||||||
|
@ -141,29 +142,32 @@ class _HeroSliverAppBarState extends State<HeroSliverAppBar> {
|
||||||
if (widget.hasFlashButton && isMobile)
|
if (widget.hasFlashButton && isMobile)
|
||||||
AnimatedSwitcher(
|
AnimatedSwitcher(
|
||||||
duration: const Duration(milliseconds: 300),
|
duration: const Duration(milliseconds: 300),
|
||||||
child: IconButton(
|
child: Tooltip(
|
||||||
onPressed: () {
|
message: 'jobs.title'.tr(), // Текст подсказки
|
||||||
showModalBottomSheet(
|
child: IconButton(
|
||||||
context: context,
|
onPressed: () {
|
||||||
useRootNavigator: true,
|
showModalBottomSheet(
|
||||||
isScrollControlled: true,
|
context: context,
|
||||||
builder: (final BuildContext context) =>
|
useRootNavigator: true,
|
||||||
DraggableScrollableSheet(
|
isScrollControlled: true,
|
||||||
expand: false,
|
builder: (final BuildContext context) =>
|
||||||
maxChildSize: 0.9,
|
DraggableScrollableSheet(
|
||||||
minChildSize: 0.4,
|
expand: false,
|
||||||
initialChildSize: 0.6,
|
maxChildSize: 0.9,
|
||||||
builder: (final context, final scrollController) =>
|
minChildSize: 0.4,
|
||||||
JobsContent(controller: scrollController),
|
initialChildSize: 0.6,
|
||||||
),
|
builder: (final context, final scrollController) =>
|
||||||
);
|
JobsContent(controller: scrollController),
|
||||||
},
|
),
|
||||||
icon: Icon(
|
);
|
||||||
isJobsListEmpty ? Ionicons.flash_outline : Ionicons.flash,
|
},
|
||||||
|
icon: Icon(
|
||||||
|
isJobsListEmpty ? Ionicons.flash_outline : Ionicons.flash,
|
||||||
|
),
|
||||||
|
color: isJobsListEmpty
|
||||||
|
? Theme.of(context).colorScheme.onBackground
|
||||||
|
: Theme.of(context).colorScheme.primary,
|
||||||
),
|
),
|
||||||
color: isJobsListEmpty
|
|
||||||
? Theme.of(context).colorScheme.onBackground
|
|
||||||
: Theme.of(context).colorScheme.primary,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox.shrink(),
|
const SizedBox.shrink(),
|
||||||
|
|
Loading…
Reference in New Issue