Created
February 23, 2022 13:15
-
-
Save kamaravichow/a8f2f2a7975eb76445a22b00a5367572 to your computer and use it in GitHub Desktop.
fb_login_basic.dart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_blocks_site/pages/side_bar.dart'; | |
class HomePage extends StatefulWidget { | |
static GlobalKey<ScaffoldState> scaffoldKey = GlobalKey(); | |
const HomePage({Key? key}) : super(key: key); | |
@override | |
_HomePageState createState() => _HomePageState(); | |
} | |
class _HomePageState extends State<HomePage> { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
key: HomePage.scaffoldKey, | |
body: Column( | |
children: [ | |
Container( | |
height: 50.0, | |
width: double.infinity, | |
color: Colors.deepPurpleAccent, | |
child: const Align( | |
alignment: Alignment.centerLeft, | |
child: Padding( | |
padding: EdgeInsets.all(10), | |
child: Text( | |
"Flutter Blocks", | |
style: TextStyle( | |
color: Colors.white, | |
fontSize: 20.0, | |
), | |
), | |
), | |
), | |
), | |
Expanded( | |
child: Row( | |
children: [ | |
// option bar | |
SideBar(), | |
// Note viewer area | |
Expanded( | |
child: Container( | |
child: Center( | |
child: CircularProgressIndicator.adaptive(), | |
), | |
), | |
) | |
], | |
), | |
), | |
], | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment