mirror of
https://github.com/flutter/samples.git
synced 2026-05-16 20:08:51 +00:00
Flutter 3.29 beta (#2571)
This commit is contained in:
@@ -39,18 +39,15 @@ class _MyAppState extends State<MyApp> {
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'Flutter Demo',
|
||||
theme: ThemeData(
|
||||
primarySwatch: Colors.green,
|
||||
),
|
||||
theme: ThemeData(primarySwatch: Colors.green),
|
||||
home: Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('Sydney'), backgroundColor: Colors.green[700]),
|
||||
title: const Text('Sydney'),
|
||||
backgroundColor: Colors.green[700],
|
||||
),
|
||||
body: GoogleMap(
|
||||
onMapCreated: _onMapCreated,
|
||||
initialCameraPosition: CameraPosition(
|
||||
target: _center,
|
||||
zoom: 11.0,
|
||||
),
|
||||
initialCameraPosition: CameraPosition(target: _center, zoom: 11.0),
|
||||
markers: {
|
||||
const Marker(
|
||||
markerId: MarkerId('Sydney'),
|
||||
@@ -59,7 +56,7 @@ class _MyAppState extends State<MyApp> {
|
||||
title: "Sydney",
|
||||
snippet: "Capital of New South Wales",
|
||||
),
|
||||
)
|
||||
),
|
||||
},
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user