rython

Creator: coderz1093

Last updated:

0 purchases

rython Image
rython Images
Add to Cart

Description:

rython

Rython #
Executing Python scripts in Flutter with Rust
Quick start #
Installing Rust
Rust Official Doc: https://www.rust-lang.org/tools/install
Using Rython

Install Flutter (you can't use a package manager such as snap).
Add a dependency to the project: flutter pub add rython.

import 'package:flutter/material.dart';
import 'package:rython/rython.dart';

Future<void> main() async {
await Rython.init();
runApp(const MyApp());
}

class MyApp extends StatelessWidget {
const MyApp({super.key});

@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('Rython')),
body: Center(
child: Column(children: [
const Text('Run Python :'),
Text('Result Eval : ${eval(script: "1 + 1")}')
]))));
}
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.

Related Products

More From This Creator