This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert' as convert; | |
import 'package:http/http.dart' as http; | |
import '../model/form.dart'; | |
/// FormController is a class which does work of saving FeedbackForm in Google Sheets using | |
/// HTTP GET request on Google App Script Web URL and parses response and sends result callback. | |
class FormController { | |
// Google App Script Web URL. | |
static const String URL = "https://script.google.com/macros/s/AKfycbyAaNh-1JK5pSrUnJ34Scp3889mTMuFI86DkDp42EkWiSOOycE/exec"; |