simulate 0.0.32 copy "simulate: ^0.0.32" to clipboard
simulate: ^0.0.32 copied to clipboard

Simulate application or add device mock on your app or your flutter project suppoer cross platform android ios , linux , macos, windows.

example/lib/main.dart

/* <!-- START LICENSE -->


Program Ini Di buat Oleh DEVELOPER Dari PERUSAHAAN GLOBAL CORPORATION 
Social Media: 

- Youtube: https://youtube.com/@Global_Corporation 
- Github: https://github.com/globalcorporation
- TELEGRAM: https://t.me/GLOBAL_CORP_ORG_BOT

Seluruh kode disini di buat 100% murni tanpa jiplak / mencuri kode lain jika ada akan ada link komment di baris code

Jika anda mau mengedit pastikan kredit ini tidak di hapus / di ganti!

Jika Program ini milik anda dari hasil beli jasa developer di (Global Corporation / apapun itu dari turunan itu jika ada kesalahan / bug / ingin update segera lapor ke sub)

Misal anda beli Beli source code di Slebew CORPORATION anda lapor dahulu di slebew jangan lapor di GLOBAL CORPORATION!


<!-- END LICENSE --> */

import 'package:flutter/material.dart';
import 'package:general_lib_flutter/general_lib_flutter.dart';
import 'package:simulate/simulate.dart';

void main() async {
  await Simulate.ensureInitialized();
  runApp(
    const App(),
  );
}

GeneralLibFlutterApp generalLibFlutterApp = GeneralLibFlutterApp();

class App extends StatelessWidget {
  const App({
    super.key,
  });
  @override
  Widget build(BuildContext context) {
    // auto change theme dark mode and white mode / light mode
    return GeneralLibFlutterAppMain(
      generalLibFlutterApp: generalLibFlutterApp,
      builder: (themeMode, lightTheme, darkTheme, widget) {
        return MaterialApp(
          debugShowCheckedModeBanner: false,
          theme: lightTheme,
          darkTheme: darkTheme,
          themeMode: themeMode,
          home: 
          Simulate(
            generalLibFlutterApp: generalLibFlutterApp,
            isShowFrame: true, // set false for disabled
            isShowTopFrame: true,
            isShowExperimental: true,
            home: MaterialApp(
              theme: lightTheme,
              darkTheme: darkTheme,
              themeMode: themeMode,
              debugShowCheckedModeBanner: false,
              debugShowMaterialGrid: false,
              showPerformanceOverlay: false,
              home: const Home(),
            ),
          ),
        );
      },
    );
  }
}

class Home extends StatefulWidget {
  const Home({
    super.key,
  });

  @override
  State<Home> createState() => _HomeState();
}

class _HomeState extends State<Home> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: PreferredSize(
        preferredSize: const Size.fromHeight(512),
        child: Container(
          decoration: const BoxDecoration(
            color: Colors.blue,
          ),
          child: const Column(
            mainAxisSize: MainAxisSize.min,
            children: [
              Row(
                children: [],
              )
            ],
          ),
        ),
      ),
      body: const Center(
        child: Text("Alow"),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () {
          Navigator.push(
            context,
            MaterialPageRoute(builder: (context) {
              return const LoginScreen();
            }),
          );
        },
        child: const Icon(
          Icons.login,
        ),
      ),
    );
  }
}

class LoginScreen extends StatefulWidget {
  const LoginScreen({super.key});

  @override
  State<LoginScreen> createState() => _LoginScreenState();
}

class _LoginScreenState extends State<LoginScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: FloatingActionButton(
          onPressed: () {
            Navigator.pop(context);
          },
          child: const Icon(
            Icons.arrow_back,
          ),
        ),
      ),
      body: const Center(
        child: Text("Alow"),
      ),
    );
  }
}
11
likes
0
pub points
42%
popularity

Publisher

unverified uploader

Simulate application or add device mock on your app or your flutter project suppoer cross platform android ios , linux , macos, windows.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cupertino_icons, device_frame, file_picker, flutter, flutter_hicons, general_lib_flutter, system_info_fetch, universal_io, window_manager

More

Packages that depend on simulate