virtual_phone

Creator: coderz1093

Last updated:

0 purchases

virtual_phone Image
virtual_phone Images
Add to Cart

Description:

virtual phone

A web-based smart phone simulator.
Example #
import 'package:flutter/material.dart';
import 'package:virtual_phone/virtual_phone.dart';

void main() {
runApp(
const VirtualPhoneScope(
child: MyApp(),
),
);
}

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

@override
Widget build(BuildContext context) {
return MaterialApp(
locale: VirtualPhone.locale(context),
builder: VirtualPhone.builder,
home: const HomePage(),
);
}
}

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

@override
Widget build(BuildContext context) {
return Scaffold(
body: ListView(
children: List.generate(
100,
(i) => ListTile(
title: Text('Tile $i'),
onTap: () {},
),
),
),
);
}
}

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.