Skip to content

Instantly share code, notes, and snippets.

@ruan65
Created November 1, 2022 22:09
Show Gist options
  • Select an option

  • Save ruan65/ecffbc589e5d3c3e2c24611b39965635 to your computer and use it in GitHub Desktop.

Select an option

Save ruan65/ecffbc589e5d3c3e2c24611b39965635 to your computer and use it in GitHub Desktop.

Revisions

  1. ruan65 renamed this gist Nov 1, 2022. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. ruan65 created this gist Nov 1, 2022.
    34 changes: 34 additions & 0 deletions a.code-snippets
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    {
    "Flutter App Example Scaffold": {
    "scope": "dart",
    "prefix": "fsapp",
    "body": [
    "import 'package:flutter/material.dart';",
    "",
    "void main() {",
    " runApp(MaterialApp(",
    "title: 'Flutter Demo',",
    "theme: ThemeData(",
    " primarySwatch: Colors.orange,",
    "),",
    "home: const HomePage(),",
    " ));",
    "}",
    "",
    "class HomePage extends StatelessWidget {",
    " const HomePage({super.key});",
    "",
    " @override",
    " Widget build(BuildContext context) {",
    "return Scaffold(",
    " appBar: AppBar(",
    "title: const Text('Home Pkkkkkage'),",
    " ),",
    " body: Container(),",
    ");",
    " }",
    "}",
    ],
    "description": "Scaffold widget snippet"
    },
    }