backendless_sdk 1.0.1 backendless_sdk: ^1.0.1 copied to clipboard
Flutter plugin for Backendless SDK. It provides access to the Backendless services that enable the server-side functionality for developing and running mobile and desktop apps.
import 'package:flutter/material.dart';
import 'package:backendless_sdk/backendless_sdk.dart';
import 'main.reflectable.dart';
void main() {
initializeReflectable();
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
String _result = 'Result';
@override
void initState() {
super.initState();
Backendless.initApp(
"APPLICATION-ID",
"ANDROID-API-KEY",
"IOS-API-KEY");
}
void buttonPressed() async {
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text('$_result'),
RaisedButton(child: Text("Press"), onPressed: buttonPressed)
],
)),
),
);
}
}