Graviton Utils

Graviton Utils is a Flutter package developed by Kugelblitz Pvt. Ltd. that provides utility functions specifically for Android devices. It includes features like image rotation at different angles and location fetching. The native side of this package is entirely written in Kotlin.

Features

  • Image Rotation: Rotate images at various angles seamlessly.
  • Location Fetching: Retrieve the device's current location efficiently.

Platform Support

This package supports Android only.

Installation

Add the following dependency in your pubspec.yaml:

dependencies:
  graviton_utils_package: latest_version

Then, run:

flutter pub get

Usage

Import the package

import 'package:graviton_utils_package/graviton_utils_package.dart';

Rotate an Image

// Result will be Image Bytes.
dynamic rotatedImage = await GravitonUtilsPackage().rotateImage(originalImage, 90);

Fetch Current Location

// Result Will Be Map of type String and dynamic. 
// Contains Keys as latitude, longitude.
dynamic location = await GravitonUtilsPackage().getCurrentLocation();

Native Implementation

The native functionalities are implemented in Kotlin, ensuring optimal performance on Android devices.

License

This package is released under the MIT License.

Contributions

Contributions are welcome! Feel free to create issues or submit pull requests.

Developed by

Kugelblitz Pvt. Ltd.