surav 1.0.23+2 copy "surav: ^1.0.23+2" to clipboard
surav: ^1.0.23+2 copied to clipboard

The Quick utilities for flutter app like api requests navigate more extensions use quick shared preferences

example/main.dart

import 'package:surav/surav.dart';

void main() async {
  ApiRequest request = ApiRequest(
    'https://example.com/api/endpoint',
    method: ApiMethod.POST,
    body: {'key': 'value'},
    showLogs: true,
  );
  Response response = await request.send();

  await SuravLocal.setString('key', 'value');
  await SuravLocal.setBool('key', true);
  await SuravLocal.setInt('key', 123);
  await SuravLocal.setDouble('key', 123.45);
  await SuravLocal.setStringList('key', ['value1', 'value2']);
}
1
likes
0
pub points
0%
popularity

Publisher

unverified uploader

The Quick utilities for flutter app like api requests navigate more extensions use quick shared preferences

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, flutter, fluttertoast, logger, provider, shared_preferences

More

Packages that depend on surav