square_mobile_payments_sdk 2025.3.0 copy "square_mobile_payments_sdk: ^2025.3.0" to clipboard
square_mobile_payments_sdk: ^2025.3.0 copied to clipboard

Square Mobile Payments SDK. Allows developers to take in-person payments using Square hardware.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'donut_counter_screen.dart';
import 'permissions_screen.dart';
import 'auth_state.dart';

void main() {
  runApp(
    ChangeNotifierProvider(
      create: (_) => AuthState(),
      child: const MyApp(),
    ),
  );
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      initialRoute: '/',
      routes: {
        '/': (context) => DonutCounterScreen(),
        '/permissions': (context) => PermissionsScreen(),
      },
    );
  }
}
2
likes
130
points
52
downloads

Publisher

verified publishersquareup.com

Weekly Downloads

Square Mobile Payments SDK. Allows developers to take in-person payments using Square hardware.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, freezed_annotation, json_annotation, plugin_platform_interface

More

Packages that depend on square_mobile_payments_sdk