fix
This commit is contained in:
parent
11cd0ad292
commit
8c841baaa3
1 changed files with 15 additions and 4 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:mangayomi/models/manga.dart';
|
import 'package:mangayomi/models/manga.dart';
|
||||||
|
|
@ -71,8 +73,15 @@ class _TrackerWidgetSearchState extends ConsumerState<TrackerWidgetSearch> {
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: context.height(0.8),
|
height: context.height(0.8),
|
||||||
child: Column(
|
child: Column(
|
||||||
|
mainAxisAlignment: _errorMsg != null
|
||||||
|
? MainAxisAlignment.center
|
||||||
|
: MainAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
if (_errorMsg != null) ErrorText(_errorMsg!),
|
if (_errorMsg != null)
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.all(30),
|
||||||
|
child: ErrorText(_errorMsg!),
|
||||||
|
),
|
||||||
if (_errorMsg == null && !hide)
|
if (_errorMsg == null && !hide)
|
||||||
Flexible(
|
Flexible(
|
||||||
child: ListView.separated(
|
child: ListView.separated(
|
||||||
|
|
@ -182,9 +191,11 @@ class _TrackerWidgetSearchState extends ConsumerState<TrackerWidgetSearch> {
|
||||||
padding: const EdgeInsets.symmetric(vertical: 10),
|
padding: const EdgeInsets.symmetric(vertical: 10),
|
||||||
child: TextFormField(
|
child: TextFormField(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
setState(() {
|
if (Platform.isAndroid || Platform.isIOS) {
|
||||||
hide = true;
|
setState(() {
|
||||||
});
|
hide = true;
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
controller: _controller,
|
controller: _controller,
|
||||||
keyboardType: TextInputType.text,
|
keyboardType: TextInputType.text,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue