https://github.com/thecodemonster1/cric_field_project_1.git
CricField Analyzer is a cross-platform Flutter application that leverages machine learning to provide advanced cricket field placement and shot analysis. It predicts optimal field placements and shot types based on match context, empowering players, coaches, and analysts with actionable insights.
- Field Placement Prediction: Suggests the top 9 fielding positions based on batsman, over range, pitch type, and bowler variation.
- Shot Type Analysis: Identifies the top 3 likely shot types for the given context.
- Model Accuracy Display: Shows the confidence level of predictions.
- Interactive Wagon Wheel: Visualizes field placements and shot types.
- Customizable Visualization: Toggle fielder names and expand/collapse match context.
- Google & Firebase Auth: Secure sign-in with Google and Firebase Authentication.
- Multi-Platform: Runs on Android, iOS, Web, Windows, macOS, and Linux.
- Flutter SDK (version 3.6.0 or higher)
- Dart SDK
- Android Studio or Xcode for running the app on Android/iOS
- Firebase project (for authentication and analytics)
-
Clone the repository:
git clone https://github.com/thecodemonster1/cric_field_project_1.git cd cric_field_project_1 -
Install dependencies:
flutter pub get
-
Configure Firebase:
- Add your
google-services.jsontoandroid/app/ - Add your
GoogleService-Info.plisttoios/Runner/
- Add your
-
Run the app:
flutter run
.
├── android/
├── assets/
│ └── images/
│ ├── CricField_Logo_BG.png
│ ├── CricField_Logo_BG2.png
│ └── Google_logo.png
│ └── models/
│ ├── enhanced_shot_placement_model.tflite
│ └── enhanced_shot_type_model.tflite
├── ios/
├── lib/
│ ├── Pages/
│ │ ├── LoginPage.dart
│ │ └── WagonWheelPage.dart
│ ├── Services/
│ │ └── Service.dart
│ └── theme/
│ └── app_theme.dart
├── pubspec.yaml
└── README.md
lib/Pages/WagonWheelPage.dart: Wagon wheel visualization and prediction UI.lib/Services/Service.dart: ML model loading and prediction logic.lib/Pages/LoginPage.dart: Authentication UI and logic.pubspec.yaml: Project dependencies and asset declarations.
- flutter
- tflite_flutter
- tflite_flutter_helper
- percent_indicator
- fl_chart
- shared_preferences
- url_launcher
- google_sign_in
- firebase_core
- firebase_auth
- Input Match Context: User selects batsman, over range, pitch type, and bowler variation.
- Model Prediction: TensorFlow Lite models predict field placements and shot types.
- Visualization: Results are shown on an interactive wagon wheel and as ranked lists.
- Customization: Users can toggle fielder names and expand/collapse match context.
To run unit tests:
flutter testContributions are welcome! Please:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature - Commit your changes:
git commit -am 'Add new feature' - Push to the branch:
git push origin feature/your-feature - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- Author: Mohamed Amhar
- Email: [email protected]
- GitHub: thecodemonster1
Thank you for using CricField Analyzer!

