INNER CODE UNIT · Dart

_HomeState

7-USH/TeVe · lib/Home/home.dart:27

class _HomeState extends State<Home> {
  late Timer _timer;
  String formattedTime =
      DateFormat("hh:mm a").format(DateTime.now()).toString();
  String formattedDate =
      DateFormat("MMM dd, yyyy").format(DateTime.now()).toString();
  HomeService service = HomeService();
  late Future<List<ChannelModel>> _channels;

  @override
  void initState() {
    super.initState();
    WidgetsFlutterBinding.ensureInitialized();
    const orientations = [
      DeviceOrientation.landscapeLeft,
      DeviceOrientation.landscapeRight
    ];
    SystemChrome.setPreferredOrientations(orientations);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…