feat(order info): added order info screen

This commit is contained in:
Username1548
2025-04-04 20:21:31 +07:00
parent 9715f4cac9
commit 748484cf8f
387 changed files with 16171 additions and 18199 deletions

View File

@@ -49,7 +49,7 @@ class MyPlansCubit extends Cubit<MyPlansState> {
emit(state.copyWith(activeFilterState: state.activeFilterState.copyWith(typeIndex: index), error: null));
EasyDebounce.debounce(
'loadPlans',
Duration(seconds: 1),
const Duration(seconds: 1),
() => loadPlans(
query: _activeQuery,
),
@@ -58,7 +58,7 @@ class MyPlansCubit extends Cubit<MyPlansState> {
emit(state.copyWith(draftFilterState: state.draftFilterState.copyWith(typeIndex: index), error: null));
EasyDebounce.debounce(
'loadPlans',
Duration(seconds: 1),
const Duration(seconds: 1),
() => loadPlans(
query: _draftQuery,
),
@@ -71,7 +71,7 @@ class MyPlansCubit extends Cubit<MyPlansState> {
emit(state.copyWith(activeFilterState: state.activeFilterState.copyWith(durationIndex: index), error: null));
EasyDebounce.debounce(
'loadPlans',
Duration(seconds: 1),
const Duration(seconds: 1),
() => loadPlans(
query: _activeQuery,
),
@@ -80,7 +80,7 @@ class MyPlansCubit extends Cubit<MyPlansState> {
emit(state.copyWith(draftFilterState: state.draftFilterState.copyWith(durationIndex: index), error: null));
EasyDebounce.debounce(
'loadPlans',
Duration(seconds: 1),
const Duration(seconds: 1),
() => loadPlans(
query: _draftQuery,
),

View File

@@ -17,7 +17,7 @@ class MyPlansState with _$MyPlansState {
@Default(0) int minDraftPlanPrice,
@Default(0) int maxDraftPlanPrice,
@Default(
const PlansFilterState(
PlansFilterState(
priceFilter: (null, null),
durationIndex: 0,
typeIndex: 0,
@@ -25,7 +25,7 @@ class MyPlansState with _$MyPlansState {
)
PlansFilterState activeFilterState,
@Default(
const PlansFilterState(
PlansFilterState(
priceFilter: (null, null),
durationIndex: 0,
typeIndex: 0,

View File

@@ -12,8 +12,7 @@ part of 'my_plans_state.dart';
T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models',
);
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
/// @nodoc
mixin _$MyPlansState {
@@ -39,23 +38,21 @@ mixin _$MyPlansState {
/// @nodoc
abstract class $MyPlansStateCopyWith<$Res> {
factory $MyPlansStateCopyWith(
MyPlansState value,
$Res Function(MyPlansState) then,
) = _$MyPlansStateCopyWithImpl<$Res, MyPlansState>;
MyPlansState value, $Res Function(MyPlansState) then) =
_$MyPlansStateCopyWithImpl<$Res, MyPlansState>;
@useResult
$Res call({
List<PlanModel> activePlans,
List<PlanModel> draftPlans,
bool isLoading,
String? error,
int selectedStateIndex,
int minActivePlanPrice,
int maxActivePlanPrice,
int minDraftPlanPrice,
int maxDraftPlanPrice,
PlansFilterState activeFilterState,
PlansFilterState draftFilterState,
});
$Res call(
{List<PlanModel> activePlans,
List<PlanModel> draftPlans,
bool isLoading,
String? error,
int selectedStateIndex,
int minActivePlanPrice,
int maxActivePlanPrice,
int minDraftPlanPrice,
int maxDraftPlanPrice,
PlansFilterState activeFilterState,
PlansFilterState draftFilterState});
$PlansFilterStateCopyWith<$Res> get activeFilterState;
$PlansFilterStateCopyWith<$Res> get draftFilterState;
@@ -88,66 +85,52 @@ class _$MyPlansStateCopyWithImpl<$Res, $Val extends MyPlansState>
Object? activeFilterState = null,
Object? draftFilterState = null,
}) {
return _then(
_value.copyWith(
activePlans:
null == activePlans
? _value.activePlans
: activePlans // ignore: cast_nullable_to_non_nullable
as List<PlanModel>,
draftPlans:
null == draftPlans
? _value.draftPlans
: draftPlans // ignore: cast_nullable_to_non_nullable
as List<PlanModel>,
isLoading:
null == isLoading
? _value.isLoading
: isLoading // ignore: cast_nullable_to_non_nullable
as bool,
error:
freezed == error
? _value.error
: error // ignore: cast_nullable_to_non_nullable
as String?,
selectedStateIndex:
null == selectedStateIndex
? _value.selectedStateIndex
: selectedStateIndex // ignore: cast_nullable_to_non_nullable
as int,
minActivePlanPrice:
null == minActivePlanPrice
? _value.minActivePlanPrice
: minActivePlanPrice // ignore: cast_nullable_to_non_nullable
as int,
maxActivePlanPrice:
null == maxActivePlanPrice
? _value.maxActivePlanPrice
: maxActivePlanPrice // ignore: cast_nullable_to_non_nullable
as int,
minDraftPlanPrice:
null == minDraftPlanPrice
? _value.minDraftPlanPrice
: minDraftPlanPrice // ignore: cast_nullable_to_non_nullable
as int,
maxDraftPlanPrice:
null == maxDraftPlanPrice
? _value.maxDraftPlanPrice
: maxDraftPlanPrice // ignore: cast_nullable_to_non_nullable
as int,
activeFilterState:
null == activeFilterState
? _value.activeFilterState
: activeFilterState // ignore: cast_nullable_to_non_nullable
as PlansFilterState,
draftFilterState:
null == draftFilterState
? _value.draftFilterState
: draftFilterState // ignore: cast_nullable_to_non_nullable
as PlansFilterState,
)
as $Val,
);
return _then(_value.copyWith(
activePlans: null == activePlans
? _value.activePlans
: activePlans // ignore: cast_nullable_to_non_nullable
as List<PlanModel>,
draftPlans: null == draftPlans
? _value.draftPlans
: draftPlans // ignore: cast_nullable_to_non_nullable
as List<PlanModel>,
isLoading: null == isLoading
? _value.isLoading
: isLoading // ignore: cast_nullable_to_non_nullable
as bool,
error: freezed == error
? _value.error
: error // ignore: cast_nullable_to_non_nullable
as String?,
selectedStateIndex: null == selectedStateIndex
? _value.selectedStateIndex
: selectedStateIndex // ignore: cast_nullable_to_non_nullable
as int,
minActivePlanPrice: null == minActivePlanPrice
? _value.minActivePlanPrice
: minActivePlanPrice // ignore: cast_nullable_to_non_nullable
as int,
maxActivePlanPrice: null == maxActivePlanPrice
? _value.maxActivePlanPrice
: maxActivePlanPrice // ignore: cast_nullable_to_non_nullable
as int,
minDraftPlanPrice: null == minDraftPlanPrice
? _value.minDraftPlanPrice
: minDraftPlanPrice // ignore: cast_nullable_to_non_nullable
as int,
maxDraftPlanPrice: null == maxDraftPlanPrice
? _value.maxDraftPlanPrice
: maxDraftPlanPrice // ignore: cast_nullable_to_non_nullable
as int,
activeFilterState: null == activeFilterState
? _value.activeFilterState
: activeFilterState // ignore: cast_nullable_to_non_nullable
as PlansFilterState,
draftFilterState: null == draftFilterState
? _value.draftFilterState
: draftFilterState // ignore: cast_nullable_to_non_nullable
as PlansFilterState,
) as $Val);
}
/// Create a copy of MyPlansState
@@ -175,24 +158,22 @@ class _$MyPlansStateCopyWithImpl<$Res, $Val extends MyPlansState>
abstract class _$$MyPlansStateImplCopyWith<$Res>
implements $MyPlansStateCopyWith<$Res> {
factory _$$MyPlansStateImplCopyWith(
_$MyPlansStateImpl value,
$Res Function(_$MyPlansStateImpl) then,
) = __$$MyPlansStateImplCopyWithImpl<$Res>;
_$MyPlansStateImpl value, $Res Function(_$MyPlansStateImpl) then) =
__$$MyPlansStateImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({
List<PlanModel> activePlans,
List<PlanModel> draftPlans,
bool isLoading,
String? error,
int selectedStateIndex,
int minActivePlanPrice,
int maxActivePlanPrice,
int minDraftPlanPrice,
int maxDraftPlanPrice,
PlansFilterState activeFilterState,
PlansFilterState draftFilterState,
});
$Res call(
{List<PlanModel> activePlans,
List<PlanModel> draftPlans,
bool isLoading,
String? error,
int selectedStateIndex,
int minActivePlanPrice,
int maxActivePlanPrice,
int minDraftPlanPrice,
int maxDraftPlanPrice,
PlansFilterState activeFilterState,
PlansFilterState draftFilterState});
@override
$PlansFilterStateCopyWith<$Res> get activeFilterState;
@@ -205,9 +186,8 @@ class __$$MyPlansStateImplCopyWithImpl<$Res>
extends _$MyPlansStateCopyWithImpl<$Res, _$MyPlansStateImpl>
implements _$$MyPlansStateImplCopyWith<$Res> {
__$$MyPlansStateImplCopyWithImpl(
_$MyPlansStateImpl _value,
$Res Function(_$MyPlansStateImpl) _then,
) : super(_value, _then);
_$MyPlansStateImpl _value, $Res Function(_$MyPlansStateImpl) _then)
: super(_value, _then);
/// Create a copy of MyPlansState
/// with the given fields replaced by the non-null parameter values.
@@ -226,93 +206,74 @@ class __$$MyPlansStateImplCopyWithImpl<$Res>
Object? activeFilterState = null,
Object? draftFilterState = null,
}) {
return _then(
_$MyPlansStateImpl(
activePlans:
null == activePlans
? _value._activePlans
: activePlans // ignore: cast_nullable_to_non_nullable
as List<PlanModel>,
draftPlans:
null == draftPlans
? _value._draftPlans
: draftPlans // ignore: cast_nullable_to_non_nullable
as List<PlanModel>,
isLoading:
null == isLoading
? _value.isLoading
: isLoading // ignore: cast_nullable_to_non_nullable
as bool,
error:
freezed == error
? _value.error
: error // ignore: cast_nullable_to_non_nullable
as String?,
selectedStateIndex:
null == selectedStateIndex
? _value.selectedStateIndex
: selectedStateIndex // ignore: cast_nullable_to_non_nullable
as int,
minActivePlanPrice:
null == minActivePlanPrice
? _value.minActivePlanPrice
: minActivePlanPrice // ignore: cast_nullable_to_non_nullable
as int,
maxActivePlanPrice:
null == maxActivePlanPrice
? _value.maxActivePlanPrice
: maxActivePlanPrice // ignore: cast_nullable_to_non_nullable
as int,
minDraftPlanPrice:
null == minDraftPlanPrice
? _value.minDraftPlanPrice
: minDraftPlanPrice // ignore: cast_nullable_to_non_nullable
as int,
maxDraftPlanPrice:
null == maxDraftPlanPrice
? _value.maxDraftPlanPrice
: maxDraftPlanPrice // ignore: cast_nullable_to_non_nullable
as int,
activeFilterState:
null == activeFilterState
? _value.activeFilterState
: activeFilterState // ignore: cast_nullable_to_non_nullable
as PlansFilterState,
draftFilterState:
null == draftFilterState
? _value.draftFilterState
: draftFilterState // ignore: cast_nullable_to_non_nullable
as PlansFilterState,
),
);
return _then(_$MyPlansStateImpl(
activePlans: null == activePlans
? _value._activePlans
: activePlans // ignore: cast_nullable_to_non_nullable
as List<PlanModel>,
draftPlans: null == draftPlans
? _value._draftPlans
: draftPlans // ignore: cast_nullable_to_non_nullable
as List<PlanModel>,
isLoading: null == isLoading
? _value.isLoading
: isLoading // ignore: cast_nullable_to_non_nullable
as bool,
error: freezed == error
? _value.error
: error // ignore: cast_nullable_to_non_nullable
as String?,
selectedStateIndex: null == selectedStateIndex
? _value.selectedStateIndex
: selectedStateIndex // ignore: cast_nullable_to_non_nullable
as int,
minActivePlanPrice: null == minActivePlanPrice
? _value.minActivePlanPrice
: minActivePlanPrice // ignore: cast_nullable_to_non_nullable
as int,
maxActivePlanPrice: null == maxActivePlanPrice
? _value.maxActivePlanPrice
: maxActivePlanPrice // ignore: cast_nullable_to_non_nullable
as int,
minDraftPlanPrice: null == minDraftPlanPrice
? _value.minDraftPlanPrice
: minDraftPlanPrice // ignore: cast_nullable_to_non_nullable
as int,
maxDraftPlanPrice: null == maxDraftPlanPrice
? _value.maxDraftPlanPrice
: maxDraftPlanPrice // ignore: cast_nullable_to_non_nullable
as int,
activeFilterState: null == activeFilterState
? _value.activeFilterState
: activeFilterState // ignore: cast_nullable_to_non_nullable
as PlansFilterState,
draftFilterState: null == draftFilterState
? _value.draftFilterState
: draftFilterState // ignore: cast_nullable_to_non_nullable
as PlansFilterState,
));
}
}
/// @nodoc
class _$MyPlansStateImpl implements _MyPlansState {
_$MyPlansStateImpl({
final List<PlanModel> activePlans = const [],
final List<PlanModel> draftPlans = const [],
this.isLoading = false,
this.error = null,
this.selectedStateIndex = 0,
this.minActivePlanPrice = 0,
this.maxActivePlanPrice = 0,
this.minDraftPlanPrice = 0,
this.maxDraftPlanPrice = 0,
this.activeFilterState = const PlansFilterState(
priceFilter: (null, null),
durationIndex: 0,
typeIndex: 0,
),
this.draftFilterState = const PlansFilterState(
priceFilter: (null, null),
durationIndex: 0,
typeIndex: 0,
),
}) : _activePlans = activePlans,
_draftPlans = draftPlans;
_$MyPlansStateImpl(
{final List<PlanModel> activePlans = const [],
final List<PlanModel> draftPlans = const [],
this.isLoading = false,
this.error = null,
this.selectedStateIndex = 0,
this.minActivePlanPrice = 0,
this.maxActivePlanPrice = 0,
this.minDraftPlanPrice = 0,
this.maxDraftPlanPrice = 0,
this.activeFilterState = const PlansFilterState(
priceFilter: (null, null), durationIndex: 0, typeIndex: 0),
this.draftFilterState = const PlansFilterState(
priceFilter: (null, null), durationIndex: 0, typeIndex: 0)})
: _activePlans = activePlans,
_draftPlans = draftPlans;
final List<PlanModel> _activePlans;
@override
@@ -370,14 +331,10 @@ class _$MyPlansStateImpl implements _MyPlansState {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$MyPlansStateImpl &&
const DeepCollectionEquality().equals(
other._activePlans,
_activePlans,
) &&
const DeepCollectionEquality().equals(
other._draftPlans,
_draftPlans,
) &&
const DeepCollectionEquality()
.equals(other._activePlans, _activePlans) &&
const DeepCollectionEquality()
.equals(other._draftPlans, _draftPlans) &&
(identical(other.isLoading, isLoading) ||
other.isLoading == isLoading) &&
(identical(other.error, error) || other.error == error) &&
@@ -399,19 +356,18 @@ class _$MyPlansStateImpl implements _MyPlansState {
@override
int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(_activePlans),
const DeepCollectionEquality().hash(_draftPlans),
isLoading,
error,
selectedStateIndex,
minActivePlanPrice,
maxActivePlanPrice,
minDraftPlanPrice,
maxDraftPlanPrice,
activeFilterState,
draftFilterState,
);
runtimeType,
const DeepCollectionEquality().hash(_activePlans),
const DeepCollectionEquality().hash(_draftPlans),
isLoading,
error,
selectedStateIndex,
minActivePlanPrice,
maxActivePlanPrice,
minDraftPlanPrice,
maxDraftPlanPrice,
activeFilterState,
draftFilterState);
/// Create a copy of MyPlansState
/// with the given fields replaced by the non-null parameter values.
@@ -423,19 +379,18 @@ class _$MyPlansStateImpl implements _MyPlansState {
}
abstract class _MyPlansState implements MyPlansState {
factory _MyPlansState({
final List<PlanModel> activePlans,
final List<PlanModel> draftPlans,
final bool isLoading,
final String? error,
final int selectedStateIndex,
final int minActivePlanPrice,
final int maxActivePlanPrice,
final int minDraftPlanPrice,
final int maxDraftPlanPrice,
final PlansFilterState activeFilterState,
final PlansFilterState draftFilterState,
}) = _$MyPlansStateImpl;
factory _MyPlansState(
{final List<PlanModel> activePlans,
final List<PlanModel> draftPlans,
final bool isLoading,
final String? error,
final int selectedStateIndex,
final int minActivePlanPrice,
final int maxActivePlanPrice,
final int minDraftPlanPrice,
final int maxDraftPlanPrice,
final PlansFilterState activeFilterState,
final PlansFilterState draftFilterState}) = _$MyPlansStateImpl;
@override
List<PlanModel> get activePlans;

View File

@@ -64,7 +64,7 @@ class MyPlansScreenContent extends StatelessWidget {
headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
return [
SliverAppBar(
shape: RoundedRectangleBorder(
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(bottom: Radius.circular(12)),
),
backgroundColor: appTheme.gray100,
@@ -85,15 +85,15 @@ class MyPlansScreenContent extends StatelessWidget {
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
SizedBox(height: 8),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 4),
const SizedBox(height: 8),
const Padding(
padding: EdgeInsets.symmetric(horizontal: 4),
child: MyPlansTab(),
),
SizedBox(height: 8),
const SizedBox(height: 8),
Row(
children: [
SizedBox(width: 4),
const SizedBox(width: 4),
Expanded(
child: CustomSearchBar(
enableIcon: false,
@@ -106,7 +106,7 @@ class MyPlansScreenContent extends StatelessWidget {
onChanged: (query) {
EasyDebounce.debounce(
'searchPlans',
Duration(milliseconds: 500),
const Duration(milliseconds: 500),
() {
context.read<MyPlansCubit>().loadPlans(query: query == '' ? null : query);
},
@@ -114,14 +114,14 @@ class MyPlansScreenContent extends StatelessWidget {
},
),
),
SizedBox(width: 12),
const SizedBox(width: 12),
AddItemButton(
onTap: () => GoRouter.of(context).pushNamed(CreatePlanScreen.name),
),
SizedBox(width: 4),
const SizedBox(width: 4),
],
),
SizedBox(height: 16),
const SizedBox(height: 16),
],
),
),
@@ -147,15 +147,15 @@ class MyPlansScreenContent extends StatelessWidget {
};
return Stack(
children: [
SizedBox.expand(),
const SizedBox.expand(),
ListView.separated(
shrinkWrap: true,
physics: BouncingScrollPhysics(),
physics: const BouncingScrollPhysics(),
itemBuilder: (context, index) {
return MyPlanWidget(plan: plans[index]);
},
separatorBuilder: (context, index) {
return SizedBox(height: 20);
return const SizedBox(height: 20);
},
itemCount: plans.length,
),

View File

@@ -47,9 +47,9 @@ class _MyPlanWidgetState extends State<MyPlanWidget> {
InkWell(
onTap: () => GoRouter.of(context).pushNamed('aboutPlanScreen', extra: {'plan': widget.plan, 'navigateToComments': false}),
child: ClipRRect(
borderRadius: BorderRadius.vertical(top: Radius.circular(12)),
borderRadius: const BorderRadius.vertical(top: Radius.circular(12)),
child: CachedNetworkImage(
imageUrl: baseUrl + '/storage/' + widget.plan.image,
imageUrl: '$baseUrl/storage/${widget.plan.image}',
fit: BoxFit.fitWidth,
width: MediaQuery.of(context).size.width,
),
@@ -69,7 +69,7 @@ class _MyPlanWidgetState extends State<MyPlanWidget> {
),
],
),
SizedBox(height: 12),
const SizedBox(height: 12),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@@ -81,13 +81,13 @@ class _MyPlanWidgetState extends State<MyPlanWidget> {
),
),
if (widget.plan.details.isNotEmpty) ...[
SizedBox(
const SizedBox(
height: 12,
),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
child: Html(
data: widget.plan.details.length > 200 ? widget.plan.details.substring(0, 200) + '...' : widget.plan.details,
data: widget.plan.details.length > 200 ? '${widget.plan.details.substring(0, 200)}...' : widget.plan.details,
style: {
"*": Style(
margin: Margins.zero,
@@ -101,15 +101,15 @@ class _MyPlanWidgetState extends State<MyPlanWidget> {
],
],
),
SizedBox(height: 16),
const SizedBox(height: 16),
Padding(
padding: EdgeInsets.only(left: 16),
padding: const EdgeInsets.only(left: 16),
child: Text(
'${widget.plan.packetsCount == 1 ? widget.plan.packet1Options?.price : '${s.from} ${widget.plan.minPriceOfOptions.toStringAsFixed(0)}'}₽',
style: TextStyles.headingXLSemibold.copyWith(color: appTheme.greenA700),
),
),
SizedBox(height: 20),
const SizedBox(height: 20),
BlocBuilder<MyPlansCubit, MyPlansState>(
builder: (context, state) {
return Padding(
@@ -129,18 +129,18 @@ class _MyPlanWidgetState extends State<MyPlanWidget> {
buttonStyle: ButtonStyle(
shape: WidgetStatePropertyAll(RoundedRectangleBorder(borderRadius: BorderRadius.circular(20))),
backgroundColor: WidgetStatePropertyAll(appTheme.blueA400),
side: WidgetStatePropertyAll(BorderSide.none),
side: const WidgetStatePropertyAll(BorderSide.none),
),
),
),
if (state.selectedStateIndex == 0) ...[
SizedBox(width: 6),
const SizedBox(width: 6),
CustomOutlinedButton(
onPressed: () async {
final box = context.findRenderObject() as RenderBox?;
await Share.shareUri(
Uri.parse(
baseUrl + '/ru/plan/' + widget.plan.id.toString(),
'$baseUrl/ru/plan/${widget.plan.id}',
),
sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
);
@@ -157,14 +157,14 @@ class _MyPlanWidgetState extends State<MyPlanWidget> {
buttonStyle: ButtonStyle(
shape: WidgetStatePropertyAll(RoundedRectangleBorder(borderRadius: BorderRadius.circular(20))),
backgroundColor: WidgetStatePropertyAll(appTheme.blueA400),
side: WidgetStatePropertyAll(BorderSide.none),
side: const WidgetStatePropertyAll(BorderSide.none),
),
text: '',
),
],
],
),
SizedBox(height: 8),
const SizedBox(height: 8),
Row(
children: [
Expanded(
@@ -178,36 +178,37 @@ class _MyPlanWidgetState extends State<MyPlanWidget> {
buttonStyle: ButtonStyle(
shape: WidgetStatePropertyAll(RoundedRectangleBorder(borderRadius: BorderRadius.circular(20))),
backgroundColor: WidgetStatePropertyAll(appTheme.lightGray0),
side: WidgetStatePropertyAll(BorderSide.none),
side: const WidgetStatePropertyAll(BorderSide.none),
),
),
),
SizedBox(width: 6),
const SizedBox(width: 6),
CustomOutlinedButton(
onPressed: () async {
final result = await context.read<MyPlansCubit>().deletePlan(widget.plan.slug);
if (result)
Future.delayed(Duration(seconds: 3), () {
if (result) {
Future.delayed(const Duration(seconds: 3), () {
if (!context.mounted) return;
showBottomSheetWithBlur(
context: context,
child: Column(
children: [
SizedBox(
const SizedBox(
height: 20,
),
BottomSheetHandlerBar(),
SizedBox(
const BottomSheetHandlerBar(),
const SizedBox(
height: 20,
),
Text(
'${widget.plan.name}',
widget.plan.name,
style: TextStyles.headingXLSemibold.copyWith(color: appTheme.black),
),
Text(
s.deleted,
style: TextStyles.headingXLSemibold.copyWith(color: appTheme.black),
),
SizedBox(
const SizedBox(
height: 20,
),
Padding(
@@ -220,18 +221,19 @@ class _MyPlanWidgetState extends State<MyPlanWidget> {
height: 52,
buttonTextStyle: TextStyles.textSSemibold.copyWith(color: appTheme.whiteA700),
buttonStyle: ButtonStyle(
side: WidgetStatePropertyAll(BorderSide.none),
side: const WidgetStatePropertyAll(BorderSide.none),
backgroundColor: WidgetStatePropertyAll(appTheme.blueA400),
),
),
),
SizedBox(
const SizedBox(
height: 20,
),
],
),
);
});
}
},
height: 52,
width: 52,
@@ -244,13 +246,13 @@ class _MyPlanWidgetState extends State<MyPlanWidget> {
buttonStyle: ButtonStyle(
shape: WidgetStatePropertyAll(RoundedRectangleBorder(borderRadius: BorderRadius.circular(20))),
backgroundColor: WidgetStatePropertyAll(appTheme.lightGray0),
side: WidgetStatePropertyAll(BorderSide.none),
side: const WidgetStatePropertyAll(BorderSide.none),
),
text: '',
),
],
),
SizedBox(height: 8),
const SizedBox(height: 8),
],
),
);