Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import "package:flutter/material.dart";
- import 'package:flutter_widgets/const/_const.dart';
- class ScaffoldPage extends StatefulWidget {
- @override
- _ScaffoldState createState() => _ScaffoldState();
- }
- class _ScaffoldState extends State<ScaffoldPage> {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: Text(PageName.SCAFFOLD),
- ),
- body: Container(
- alignment: Alignment.center,
- constraints: BoxConstraints.expand(height: 50),
- color: RED,
- child: Text(
- "body",
- style: TextStyle(fontSize: 30, color: Colors.white),
- ),
- ),
- );
- }
- }
Add Comment
Please, Sign In to add comment