Remove deprectated api ignoreSemantics, according to the docs its now redundant
This commit is contained in:
parent
d369891d1e
commit
b3e57867dd
@ -28,7 +28,6 @@ class _BottomTextContent extends StatelessWidget {
|
||||
Column(
|
||||
children: [
|
||||
IgnorePointer(
|
||||
ignoringSemantics: false,
|
||||
child: Semantics(
|
||||
button: true,
|
||||
onIncrease: () => state._handleArtifactTap(_currentPage + 1),
|
||||
|
@ -263,7 +263,6 @@ class _HomeScreenState extends State<HomeScreen> with SingleTickerProviderStateM
|
||||
/// Title Content
|
||||
LightText(
|
||||
child: IgnorePointer(
|
||||
ignoringSemantics: false,
|
||||
child: Transform.translate(
|
||||
offset: Offset(0, 30),
|
||||
child: Column(
|
||||
|
@ -1,7 +1,7 @@
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:wonders/common_libs.dart';
|
||||
import 'package:wonders/ui/common/app_icons.dart';
|
||||
import 'package:wonders/ui/common/app_icons.dart';
|
||||
import 'package:wonders/ui/common/controls/app_page_indicator.dart';
|
||||
import 'package:wonders/ui/common/gradient_container.dart';
|
||||
import 'package:wonders/ui/common/static_text_scale.dart';
|
||||
@ -53,14 +53,14 @@ class _IntroScreenState extends State<IntroScreen> {
|
||||
|
||||
void _handleNavTextSemanticTap() => _incrementPage(1);
|
||||
|
||||
void _incrementPage(int dir){
|
||||
void _incrementPage(int dir) {
|
||||
final int current = _pageController.page!.round();
|
||||
if (_isOnLastPage && dir > 0) return;
|
||||
if (_isOnFirstPage && dir < 0) return;
|
||||
_pageController.animateToPage(current + dir, duration: 250.ms, curve: Curves.easeIn);
|
||||
}
|
||||
|
||||
void _handleScrollWheel(double delta) => _incrementPage(delta >0? 1 : -1);
|
||||
void _handleScrollWheel(double delta) => _incrementPage(delta > 0 ? 1 : -1);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@ -79,8 +79,8 @@ class _IntroScreenState extends State<IntroScreen> {
|
||||
|
||||
/// Return resulting widget tree
|
||||
return Listener(
|
||||
onPointerSignal: (signal){
|
||||
if(signal is PointerScrollEvent){
|
||||
onPointerSignal: (signal) {
|
||||
if (signal is PointerScrollEvent) {
|
||||
_handleScrollWheel(signal.scrollDelta.dy);
|
||||
}
|
||||
},
|
||||
@ -108,7 +108,6 @@ class _IntroScreenState extends State<IntroScreen> {
|
||||
),
|
||||
|
||||
IgnorePointer(
|
||||
ignoringSemantics: false,
|
||||
child: Column(children: [
|
||||
Spacer(),
|
||||
|
||||
|
@ -56,7 +56,6 @@ class _EventMarkersState extends State<_EventMarkers> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return IgnorePointer(
|
||||
ignoringSemantics: false,
|
||||
child: LayoutBuilder(builder: (_, constraints) {
|
||||
/// Figure out which event is "selected"
|
||||
_updateSelectedEvent(constraints.maxHeight);
|
||||
|
@ -36,7 +36,6 @@ class _EventPopupsState extends State<_EventPopups> {
|
||||
return TopCenter(
|
||||
child: ClipRect(
|
||||
child: IgnorePointer(
|
||||
ignoringSemantics: false,
|
||||
child: AnimatedSwitcher(
|
||||
duration: $styles.times.fast,
|
||||
child: evt == null
|
||||
|
@ -70,7 +70,6 @@ class _ScalingViewportState extends State<_ScrollingViewport> {
|
||||
|
||||
// Dashed line with a year that changes as we scroll
|
||||
IgnorePointer(
|
||||
ignoringSemantics: false,
|
||||
child: AnimatedBuilder(
|
||||
animation: controller.scroller,
|
||||
builder: (_, __) {
|
||||
|
@ -21,7 +21,6 @@ class TimelineSection extends StatelessWidget {
|
||||
StringUtils.formatYr(data.endYr),
|
||||
)}',
|
||||
child: IgnorePointer(
|
||||
ignoringSemantics: false,
|
||||
child: Container(
|
||||
alignment: Alignment(0, -1 + fraction * 2),
|
||||
padding: EdgeInsets.all($styles.insets.xs),
|
||||
|
@ -14,7 +14,6 @@ class _YearMarkers extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return IgnorePointer(
|
||||
ignoringSemantics: false,
|
||||
child: LayoutBuilder(builder: (_, constraints) {
|
||||
int interval = 100;
|
||||
if (constraints.maxHeight < 800) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user