[flutter] WAppbar03

6891 단어 flutterappbarappbar

스샷

코드

import 'package:flutter/material.dart';

/// WAppbar03
/// title : WAppbar02(appbar 기본) 에서 배경 색상 제거 및 투명화 적용

class WAppbar03 extends StatelessWidget {
  const WAppbar03({Key? key}) : super(key: key);

  final String title = 'WAppbar03';

  
  Widget build(BuildContext context) {
    TextStyle style = TextStyle(color: Color(0xff000000));

    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: title,
      home: Scaffold(
        appBar: AppBar(
          backgroundColor: Color(0x00FFFFFF),
          shadowColor: Color(0x00FFFFFF),
          leading: Text(
            'leading',
            style: style,
          ),
          bottom: PreferredSize(
            child: Text(
              'bottom',
              style: style,
            ),
            preferredSize: Size(10, 10),
          ),
          title: Text(
            'title',
            style: style,
          ),
          actions: [
            Text(
              'ac1',
              style: style,
            ),
            Text(
              'ac2',
              style: style,
            ),
          ],
          flexibleSpace: Text(
            'flexibleSpace',
            style: style,
          ),
        ),
      ),
    );
  }
}

좋은 웹페이지 즐겨찾기