For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
| // Copyright 2017, the Flutter project authors. Please see the AUTHORS file | |
| // for details. All rights reserved. Use of this source code is governed by a | |
| // BSD-style license that can be found in the LICENSE file. | |
| import 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(new MyApp()); | |
| } |
I have tried a lot of solutions for IP-camera streams.
-
Vitamio.https://github.com/yixia/Vitamio-iOS
Result: random crashes and not working cameras -
https://github.com/kolyvan/kxmovie
Result: compile time error. I haven't successfully integrated it to my project. -
GStreamer. https://github.com/sdroege/gst-player
| import android.support.v4.view.animation.PathInterpolatorCompat; | |
| import android.view.animation.Interpolator; | |
| /** | |
| * Cheatsheet: http://easings.net/ | |
| */ | |
| public class EasingsConstants { | |
| public static final Interpolator easeInSine = PathInterpolatorCompat.create(0.47f, 0f, 0.745f, 0.715f); | |
| public static final Interpolator easeOutSine = PathInterpolatorCompat.create(0.39f, 0.575f, 0.565f, 1f); | |
| public static final Interpolator easeInOutSine = PathInterpolatorCompat.create(0.445f, 0.05f, 0.55f, 0.95f); |
| extension NSTimer { | |
| /** | |
| Creates and schedules a one-time `NSTimer` instance. | |
| - Parameters: | |
| - delay: The delay before execution. | |
| - handler: A closure to execute after `delay`. | |
| - Returns: The newly-created `NSTimer` instance. | |
| */ |
| import android.support.v4.view.ViewPager; | |
| import android.view.View; | |
| /** | |
| * Custom PageTransformer simulates Yahoo News Digest ViewPager animation. | |
| * | |
| * | |
| * Created by zhelu on 2/27/14. | |
| */ | |
| public class ParallaxViewTransformer implements ViewPager.PageTransformer { |
So, what is crosswalk and why do I care? Take a look at the website: https://crosswalk-project.org/
CrossWalk is a HTML5 runtime, you can use it to create HTML5 applications with 'native features' You can use CrossWalk to create HTML5-only applications for Android (x86 and arm architectures) and Tizen but you can also use CrossWalk as a View within an android project.
This means you can replace Android WebView with XWalkView and get some extra features like:
| /* | |
| * Copyright 2014 Julian Shen | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |