This file contains hidden or 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 'package:bluesky/atproto.dart'; | |
import 'package:bluesky/bluesky.dart'; | |
import 'package:bluesky/core.dart'; | |
import 'package:bluesky_text/bluesky_text.dart'; | |
import 'package:http/http.dart' as http; | |
import 'package:metadata_fetch/metadata_fetch.dart'; | |
Future<void> postEntry(PostDataEntry postData, String username, String password) async { | |
try { | |
// Create the Bluesky session. As the login is done by username and password it is |
This file contains hidden or 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
Future<FlutterDriver> setupAndGetDriver() async { | |
FlutterDriver driver = await FlutterDriver.connect(); | |
var connected = false; | |
while (!connected) { | |
try { | |
await driver.waitUntilFirstFrameRasterized(); | |
connected = true; | |
} catch (error) {} | |
} | |
return driver; |
This file contains hidden or 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
javascript:window.open('https://html5.validator.nu/?doc='+encodeURIComponent(location.href));void(0); |