Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- void main() => runApp(MyApp());
- class MyApp extends StatelessWidget {
- // This widget is the root of your application.
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- debugShowCheckedModeBanner: false,
- home: MyHomePage(),
- );
- }
- }
- class MyHomePage extends StatefulWidget {
- @override
- _MyHomePageState createState() => _MyHomePageState();
- }
- class _MyHomePageState extends State<MyHomePage> {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- elevation: 0,
- titleSpacing: 0,
- title: Row(
- children: [
- Expanded(
- child: Container(
- child: Center(child: Text('Title')),
- ),
- ),
- ],
- ),
- ),
- body: Container(
- child: SafeArea(child: Container()),
- ));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement