FooService.java
public interface FooService {
...
@GET("allVideoInfo/id/{videoid}")
Observable<VideoModel> getAllVideoInfo(@Path("videoid") String videoId);
...
FooService.java
public interface FooService {
...
@GET("allVideoInfo/id/{videoid}")
Observable<VideoModel> getAllVideoInfo(@Path("videoid") String videoId);
...
RxBus.Java
public class RxBus {
private static RxBus myInstance = new RxBus();
private final Subject<Object, Object> _bus = new SerializedSubject<>(PublishSubject.create());
...
public static RxBus singleton() {
if (myInstance == null) {
| fun View.visible() { | |
| visibility = View.VISIBLE | |
| } | |
| fun View.invisible() { | |
| visibility = View.INVISIBLE | |
| } | |
| fun View.gone() { | |
| visibility = View.GONE |
| import base64 | |
| import xmlrpclib | |
| sock = xmlrpclib.ServerProxy('http://localhost:8069/xmlrpc/db') | |
| # backup will be saved to backup.dump file | |
| backup_file = open('backup.dump', 'wb') | |
| # database name: auc_odoo_db | |
| # database master password: admin |
| import 'dart:ui' as ui; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(new MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| final Shader linearGradient = LinearGradient( |
| class TranslateTransition extends AnimatedWidget { | |
| const TranslateTransition({ | |
| Key key, | |
| @required Animation<double> translate, | |
| this.alignment = Alignment.center, | |
| this.child, | |
| }) : super(key: key, listenable: translate); | |
| Animation<double> get translate => listenable; |
| package com.example.playground_bottomnavbar_api | |
| import android.os.Bundle | |
| import androidx.activity.ComponentActivity | |
| import androidx.activity.compose.setContent | |
| import androidx.compose.animation.* | |
| import androidx.compose.animation.core.tween | |
| import androidx.compose.foundation.Image | |
| import androidx.compose.foundation.background | |
| import androidx.compose.foundation.layout.* |
| import java.lang.StringBuilder | |
| import java.math.BigDecimal | |
| import java.math.BigInteger | |
| import java.math.RoundingMode | |
| import java.util.ArrayList | |
| object ArabicTools { | |
| fun numberToArabicWords(n: String?): String { | |
| return numberToArabicWords(n, false) | |
| } |
| class AnimatedCount extends ImplicitlyAnimatedWidget { | |
| AnimatedCount({ | |
| Key? key, | |
| required this.count, | |
| Duration duration = const Duration(milliseconds: 600), | |
| Curve curve = Curves.fastOutSlowIn, | |
| }) : super(duration: duration, curve: curve, key: key); | |
| final num count; |