Skip to content

AppBarTheme titleTextStyle is not work #81675

@scolia

Description

@scolia
var appTheme = ThemeData.from(colorScheme: ColorScheme.light()).copyWith(
  appBarTheme: AppBarTheme(
    titleTextStyle: TextStyle(
      fontSize: 18,
      fontWeight: FontWeight.w600,
      color: AppColors.primaryText,
    ),
  ),
// ...
);
class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return ScreenUtilInit(
        designSize: Size(375, 667),
        builder: () => GetMaterialApp(
              theme: appTheme,
              initialRoute: AppRoutes.index,
              getPages: AppPages.pages,
            ));
  }
}
return Scaffold(
      appBar: AppBar(
       // but the style set by titleTextStyle is now work!!!
        title: Text(
          'test',
        ),
      ),
      body: _buildBody(),
    );
Flutter 2.0.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 1d9032c7e1 (3 days ago) • 2021-04-29 17:37:58 -0700
Engine • revision 05e680e202
Tools • Dart 2.12.3

Metadata

Metadata

Assignees

Labels

d: api docsIssues with https://api.flutter.dev/f: material designflutter/packages/flutter/material repository.found in release: 2.3Found to occur in 2.3frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions