open_store 0.5.0 copy "open_store: ^0.5.0" to clipboard
open_store: ^0.5.0 copied to clipboard

Simple lightweight package to open store page for android and iOS GooglePlay and AppStore

example/lib/main.dart

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

void main() {
  runApp(const UpenStoreExample());
}

class UpenStoreExample extends StatelessWidget {
  const UpenStoreExample({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const Home(),
    );
  }
}

class Home extends StatelessWidget {
  const Home({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: ElevatedButton(
          onPressed: () {
            OpenStore.instance.open(
              appStoreId: '1543803459',
              androidAppBundleId: 'com.google.android.googlequicksearchbox',
            );
          },
          child: const Text('Open store'),
        ),
      ),
    );
  }
}
109
likes
160
points
33.6k
downloads

Publisher

verified publisherfrezycode.com

Weekly Downloads

Simple lightweight package to open store page for android and iOS GooglePlay and AppStore

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, url_launcher

More

Packages that depend on open_store