Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kodjodevf committed Jan 11, 2025
1 parent 11cd0ad commit 8c841ba
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions lib/modules/manga/detail/widgets/tracker_search_widget.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:mangayomi/models/manga.dart';
Expand Down Expand Up @@ -71,8 +73,15 @@ class _TrackerWidgetSearchState extends ConsumerState<TrackerWidgetSearch> {
child: SizedBox(
height: context.height(0.8),
child: Column(
mainAxisAlignment: _errorMsg != null
? MainAxisAlignment.center
: MainAxisAlignment.start,
children: [
if (_errorMsg != null) ErrorText(_errorMsg!),
if (_errorMsg != null)
Padding(
padding: const EdgeInsets.all(30),
child: ErrorText(_errorMsg!),
),
if (_errorMsg == null && !hide)
Flexible(
child: ListView.separated(
Expand Down Expand Up @@ -182,9 +191,11 @@ class _TrackerWidgetSearchState extends ConsumerState<TrackerWidgetSearch> {
padding: const EdgeInsets.symmetric(vertical: 10),
child: TextFormField(
onTap: () {
setState(() {
hide = true;
});
if (Platform.isAndroid || Platform.isIOS) {
setState(() {
hide = true;
});
}
},
controller: _controller,
keyboardType: TextInputType.text,
Expand Down

0 comments on commit 8c841ba

Please sign in to comment.