import 'package:fast_network_navigation/modules/greeter.dart'; import 'package:flutter/material.dart'; import 'package:sliding_up_panel/sliding_up_panel.dart'; import 'package:fast_network_navigation/modules/landmarks_overview.dart'; import 'package:fast_network_navigation/modules/map.dart'; class NavigationOverview extends StatefulWidget { @override State createState() => _NavigationOverviewState(); } class _NavigationOverviewState extends State { @override Widget build(BuildContext context) { final ThemeData theme = Theme.of(context); return SlidingUpPanel( renderPanelSheet: false, panel: _floatingPanel(theme), collapsed: _floatingCollapsed(theme), body: MapWidget() ); } Widget _floatingCollapsed(ThemeData theme){ return Container( decoration: BoxDecoration( color: theme.canvasColor, borderRadius: BorderRadius.only(topLeft: Radius.circular(24.0), topRight: Radius.circular(24.0)), boxShadow: [] ), child: Greeter(theme) ); } Widget _floatingPanel(ThemeData theme){ return Container( decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.all(Radius.circular(24.0)), boxShadow: [ BoxShadow( blurRadius: 20.0, color: theme.shadowColor, ), ] ), child: Center( child: Padding( padding: EdgeInsets.all(8.0), child: SingleChildScrollView( child: Column( children: [ Greeter(theme, full: true), loadLandmarksOverview(), ], ), ), ), ), ); } }