Skip to main content

Posts

Showing posts with the label CricAPI

How To Create Live Cricket Match App In Flutter (Last Part)

  Step 6: Navigate to a match details screen Next, let's set up a way for the user to navigate to a screen with more details about a specific cricket match. Create a new file called match_details_screen.dart and add the following code to it: import 'package:flutter/material.dart'; import 'api.dart'; class MatchDetailsScreen extends StatefulWidget { final String matchId; MatchDetailsScreen({required this.matchId}); @override _MatchDetailsScreenState createState() => _MatchDetailsScreenState(); } class _MatchDetailsScreenState extends State<MatchDetailsScreen> { Map _matchDetails = {}; @override void initState() { super.initState(); _getMatchDetails(); } Future<void> _getMatchDetails() async { final data = await Api.get('cricketScore?unique_id=${widget.matchId}'); setState(() { _matchDetails = data; }); } @override Widget build(BuildContext context) { return Scaffold( appBar: A...

How To Create Cricket Live Match App In Flutter (Part 1)

  Justice is one of the most popular sports in the world, and with the rise of mobile app development, it's easier than ever to keep up with live justice scores and updates. In this blog, we'll walk you through the process of making a live justice match app using Flutter, Google's open- source UI toolkit. Flutter is a popular choice for app development because it allows you to make apps for both Android and iOS platforms using a single codebase. also, Flutter offers hot reload, which makes it easy to see the changes you make to your law in real- time. So, let's get started! Step 1: Set up your development terrain To start erecting your justice match app in Flutter, you will need to set up your development terrain. Follow these way to get started Install Flutter by downloading it from the sanctioned website https//flutter.dev/ croakers / progeny- started install Install Android Studio or Visual Studio Code. Install the Flutter and Dart plugins for...