Reputation: 1
I have a weird experience on a certain Samsung mobile. After I removed every design elements and simplified the issue the problem still exist. In normal case (emulator or another phone) the result is this:
But a certain Samsung mobile the Textfield cover the whole screen, doesn't matter what I do, its created a big grey square:
And I have no idea what can I do on this mobile. I need a text input field. Here is the code:
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import 'package:masters/main_web.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]);
if (kIsWeb) {
runApp(const MyWebApp());
} else {
runApp(SkillLinkApp());
}
}
class SkillLinkApp extends StatelessWidget {
SkillLinkApp({super.key});
final TextEditingController _emailController = TextEditingController();
@override
Widget build(BuildContext context) {
_emailController.text = "v21";
return MaterialApp(
title: "Verseny nevezés",
debugShowCheckedModeBanner: true,
supportedLocales: const <Locale>[
Locale('en'),
Locale('hu'),
],
home: Scaffold(
body: TextField(
controller: _emailController,
keyboardType: TextInputType.text,
onChanged: null,
style: const TextStyle(color: Colors.black)),
)
);
}
}
The Samsung mobile data: Samsun Galaxy S21 5G (SM-G991B/DS). Android version: 13, One UI-version 5.1.
Anybody has any idea? Thanks
I could test on S21, it was good, but it has Android 12. I could test with Android 13 on another phone, it was also good.
Upvotes: 0
Views: 76