rush_sdk 0.0.19 copy "rush_sdk: ^0.0.19" to clipboard
rush_sdk: ^0.0.19 copied to clipboard

Rush SDK

Change Log #

0.0.19 #

  • add RTWebview.PopScope.onPopInvokedWithResult

0.0.18 #

  • add RTPropertyString
// example

// 1. basic
var propertyString = RTPropertyString(
      items: [
        RTPropertyStringItem(key: 'n', value: 'ES_J'),
        RTPropertyStringItem(key: 'cb', value: '#a0b1c9'),
        RTPropertyStringItem(key: 'cp', value: '#7d91a3'),
        RTPropertyStringItem(key: 'bg', value: '#e5f4e1'),
      ],
    );

print(propertyString.toString()); // "n.ES_J!cb.#a0b1c9!cp.#7d91a3!bg.#e5f4e1"

// 2. fromString
var propertyString = RTPropertyString.fromString(
  "n.ES_J!cb.#a0b1c9!cp.#7d91a3!bg.#e5f4e1",
);

print(propertyString.toJson()); // {n: ES_J, cb: #a0b1c9, cp: #7d91a3, bg: #e5f4e1}

// 3. fromFirebaseStorageUrl
var propertyString = RTPropertyString.fromFirebaseStorageUrl(
  "https://firebasestorage.googleapis.com/v0/b/{project-name}/o/{path}%2Fn!ES_J.cb!%23a0b1c9.cp!%237d91a3.bg!%23e5f4e1.svg?alt=media&token={token}",
);

print(propertyString.toString()); // "n.ES_J!cb.#a0b1c9!cp.#7d91a3!bg.#e5f4e1"

0.0.17 #

  • rename LifeCycle to RTLifeCycle
  • add RTClient.patch
  • rename Version to RTVersion
  • add HexColor

0.0.10 #

  • rename LoadingOverlay to RTLoadingOverlay

each client that uses RTLoadingWidget must be updated.
use this custom loading widget.

// example
class Loading extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return RTLoadingOverlay(child: const Lottie.asset('assets/lottie/loading.json'));
  }
}

0.0.9 #

  • add RTLogger

0.0.8 #

  • add AuthInterceptor
  • add RTClientInterceptor
  • add RTClient

0.0.4 #

  • add class RTImageUtil
    • add RTImageUtil.base64({ file, bytes })
    • add RTImageUtil.base64Prefix({ file, url, ext })

for the format of OpenAI Chat Completions image_url request property

  • class RTImage
    • add RTImage.isCircular
    • add RTImage.radius

0.0.2 #

  • add RTWebview

0.0.1 #

initial release