refactor: update SDK version to 3.10.0 and clean up unused variables
fix: fix some analyze issue
This commit is contained in:
@@ -95,8 +95,8 @@ class _WaveBottomNavigationState extends State<WaveBottomNavigation> {
|
||||
animation: _controller,
|
||||
builder: (context, child) {
|
||||
double value = 0.0;
|
||||
final scale = _calculateScale(_controller.page ?? _controller.initialPage.toDouble() ?? 0.0, index);
|
||||
value = index - (_controller.page ?? _controller.initialPage.toDouble() ?? 0.0);
|
||||
final scale = _calculateScale(_controller.page ?? _controller.initialPage.toDouble(), index);
|
||||
value = index - (_controller.page ?? _controller.initialPage.toDouble());
|
||||
value = (value).clamp(-1, 1);
|
||||
double offset = value * 30;
|
||||
if (value.abs() < 0.2 || value.abs() > 0.2) {
|
||||
|
||||
@@ -220,7 +220,7 @@ class _RFabState extends State<RFab> {
|
||||
shape: WidgetStatePropertyAll(
|
||||
CircleBorder(side: BorderSide(width: 1, color: Colors.transparent)),
|
||||
),
|
||||
fixedSize: WidgetStatePropertyAll(Size(widget.radius ?? 56, widget.radius ?? 56)),
|
||||
fixedSize: WidgetStatePropertyAll(Size(widget.radius, widget.radius)),
|
||||
padding: WidgetStatePropertyAll(EdgeInsets.zero),
|
||||
),
|
||||
child: widget.isLoading
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
import 'package:rasadyar_core/presentation/common/app_color.dart';
|
||||
import 'package:rasadyar_core/presentation/widget/draggable_bottom_sheet/draggable_bottom_sheet_controller.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
class DraggableBottomSheet extends StatelessWidget {
|
||||
final DraggableBottomSheetController controller;
|
||||
|
||||
@@ -180,39 +180,4 @@ class RListView<T> extends StatelessWidget {
|
||||
return onRefresh != null ? RefreshIndicator(onRefresh: onRefresh!, child: list) : list;
|
||||
}
|
||||
}
|
||||
|
||||
RListView._({
|
||||
required this.type,
|
||||
required this.scrollDirection,
|
||||
required this.reverse,
|
||||
required this.controller,
|
||||
required this.primary,
|
||||
required this.physics,
|
||||
required this.scrollBehavior,
|
||||
required this.shrinkWrap,
|
||||
required this.center,
|
||||
required this.cacheExtent,
|
||||
required this.semanticChildCount,
|
||||
required this.itemCount,
|
||||
required this.dragStartBehavior,
|
||||
required this.keyboardDismissBehavior,
|
||||
required this.restorationId,
|
||||
required this.clipBehavior,
|
||||
required this.hitTestBehavior,
|
||||
required this.prototypeItem,
|
||||
required this.padding,
|
||||
required this.itemExtent,
|
||||
required this.itemExtentBuilder,
|
||||
required this.findChildIndexCallback,
|
||||
required this.itemBuilder,
|
||||
required this.separatorBuilder,
|
||||
required this.addAutomaticKeepAlives,
|
||||
required this.addRepaintBoundaries,
|
||||
required this.addSemanticIndexes,
|
||||
required this.loadingWidget,
|
||||
required this.emptyWidget,
|
||||
required this.errorWidget,
|
||||
required this.resource,
|
||||
required this.onRefresh,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user