Skip to content

Instantly share code, notes, and snippets.

@pxpc2
Created May 25, 2022 15:31
Show Gist options
  • Save pxpc2/24c27d550e030d48aa764cdbb34beed6 to your computer and use it in GitHub Desktop.
Save pxpc2/24c27d550e030d48aa764cdbb34beed6 to your computer and use it in GitHub Desktop.

Revisions

  1. pxpc2 created this gist May 25, 2022.
    32 changes: 32 additions & 0 deletions main.dart
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    import 'package:flutter/material.dart';

    void main() {

    MaterialApp app = MaterialApp(
    home: Scaffold(
    appBar: AppBar(
    title: const Text('Quotes'),
    backgroundColor: Colors.deepPurple,
    ),
    body: const Padding(
    padding: EdgeInsets.all(20),
    child: Text('Content'),
    ),
    bottomNavigationBar: BottomAppBar(
    color: Colors.deepPurpleAccent,
    child: Padding(
    padding: const EdgeInsets.all(20),
    child: Row(
    children: const [
    Text('bottom content'),
    Text('In the row!')
    ],
    ),
    ),
    ),
    ),
    );

    runApp(app);

    }