virtual_gamepad_pro 0.4.0-dev.1
virtual_gamepad_pro: ^0.4.0-dev.1 copied to clipboard
Advanced virtual controller suite: joystick, d-pad, buttons, and runtime layout editor with JSON serialization. Optimized for remote play.
import 'package:flutter/material.dart';
import 'views/layout_manager_page.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: '布局编辑器',
debugShowCheckedModeBanner: false,
theme: ThemeData(
brightness: Brightness.light,
colorScheme: ColorScheme.fromSeed(
seedColor: Colors.black,
brightness: Brightness.light,
surface: Colors.white,
onSurface: Colors.black87,
),
scaffoldBackgroundColor: const Color(
0xFFF5F5F7,
), // Apple-like light gray
useMaterial3: true,
appBarTheme: const AppBarTheme(
backgroundColor: Colors.white,
foregroundColor: Colors.black,
elevation: 0,
scrolledUnderElevation: 0,
titleTextStyle: TextStyle(
color: Colors.black,
fontSize: 16,
fontWeight: FontWeight.w600,
),
iconTheme: IconThemeData(color: Colors.black87),
),
cardTheme: CardThemeData(
elevation: 0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12),
side: BorderSide(color: Colors.grey.withValues(alpha: 0.1)),
),
color: Colors.white,
),
dividerTheme: DividerThemeData(
color: Colors.grey.withValues(alpha: 0.1),
thickness: 1,
),
),
home: const LayoutManagerPage(),
);
}
}