google_places_native_sdk 3.0.0
google_places_native_sdk: ^3.0.0 copied to clipboard
A Flutter plugin for Google Places SDK.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'place_search_screen.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
// Set system UI overlay style
SystemChrome.setSystemUIOverlayStyle(
const SystemUiOverlayStyle(
statusBarColor: Colors.transparent,
statusBarIconBrightness: Brightness.dark,
),
);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Google Place Search',
debugShowCheckedModeBanner: false,
theme: ThemeData(
useMaterial3: true,
colorScheme: ColorScheme.fromSeed(
seedColor: Colors.pinkAccent,
brightness: Brightness.light,
),
appBarTheme: const AppBarTheme(
elevation: 0,
centerTitle: true,
backgroundColor: Colors.transparent,
),
floatingActionButtonTheme: const FloatingActionButtonThemeData(
elevation: 4,
shape: CircleBorder(),
),
),
home: const PlaceSearchScreen(),
);
}
}