I hereby claim:
- I am aidxnz on github.
- I am aidxn (https://keybase.io/aidxn) on keybase.
- I have a public key ASCUkZa-id_pONJSAtyCOYwViQi8yl1gWFOCQ9K9glg9eQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
child: new Material( | |
borderRadius: BorderRadius.circular(10.0), | |
elevation: 0.0, | |
shadowColor: Color(0xFFFFAFBD), | |
child: new Container( | |
height: 500.0, | |
width: 350.0, | |
decoration: BoxDecoration( | |
boxShadow: [ | |
new BoxShadow( |
new Material ( | |
borderRadius: BorderRadius.circular(10.0), | |
elevation: 0.0, | |
child: new Container( | |
height: 500.0, | |
width: 350.0, | |
decoration: BoxDecoration( | |
color: Colors.white, | |
borderRadius: BorderRadius.circular(10.0), | |
// the box shawdow property allows for fine tuning as aposed to shadowColor |
class UserModel extends Model { | |
String _userName = ""; | |
String get userName => _userName; | |
// The changeName method has a String parameter to pass the value | |
void changeName(String newValue) { | |
// We set the users name to the updated value | |
_userName = newValue; | |
// Create our App, which will provide the `UserModel` to | |
// all children that require it! | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
// First, create a `ScopedModel` widget. This will provide | |
// the `model` to the children that request it. | |
return new ScopedModel<UserModel>( | |
model: new UserModel(), | |
child: new Column(children: [ |
floatingActioButton: ScopedModelDescendant<UserModel>( | |
builder: (context, child, model) { | |
return FloatingActionButton( | |
onPressed: model.changeName(String "Kodak Black"), | |
tooltip: 'Update Name', | |
child: Icon(Icons.add), | |
); | |
} | |
); |
HttpClient client = new HttpClient(); | |
var _downloadData = List<int>(); | |
var fileSave = new File('./logo.png'); | |
client.getUrl(Uri.parse("https://fluttermaster.com/wp-content/uploads/2018/08/fluttermaster.com-logo-web-header.png")) | |
.then((HttpClientRequest request) { | |
return request.close(); | |
}) | |
.then((HttpClientResponse response) { | |
response.listen((d) => _downloadData.addAll(d), | |
onDone: () { |
import 'package:youtube_extractor/youtube_extractor.dart'; | |
var extractor = YouTubeExtractor(); | |
main() async { | |
// Get the stream info for the passed video | |
var streamInfo = await extractor.getMediaStreamsAsync('a1ExYqrBJio'); | |
// Print the audio stream url | |
print('Audio URL: ${streamInfo.audio.first.url}'); |
WaveWidget( | |
duration: 1, | |
config: CustomConfig( | |
gradients: [ | |
[Color(0xFF3A2DB3), Color(0xFF3A2DB1)], | |
[Color(0xFFEC72EE), Color(0xFFFF7D9C)], | |
[Color(0xFFfc00ff), Color(0xFF00dbde)], | |
[Color(0xFF396afc), Color(0xFF2948ff)] | |
], | |
durations: [35000, 19440, 10800, 6000], |
docker pull aidxn3/ipfs-lite:test
docker run aidxn3/ipfs-lite:test
After running you should see Hello World in the terminal. This is the ipfs peer fetching the Hello World ipfs file and returning it.