Posts Tagged: basic app bar

Coding Flutter
Flutter: Basic App Bar
November 19, 2019
0
,
lib/main.dart import 'package:flutter/material.dart'; void main() { runApp(BasicAppbar()); } class BasicAppbar extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( appBar: AppBar( // backgroundColor: Colors.white, leading: Padding( padding: EdgeInsets.only(left: 12), child: IconButton( icon: Icon(Icons.list), onPressed: () { print('Click leading'); }, ), ), title: Row( mainAxisAlignment: MainAxisAlignment.center, children:[ Text('Basic AppBar'), ] ), actions: [ […]