
* Refactor fix_data.yaml * ++ * lib, not lib/src * Nit * Nit * Update packages/flutter/test_fixes/material/app_bar_theme.dart Co-authored-by: Alexander Dahlberg <dustbin4ever@gmail.com> * Fix copy paste errors Co-authored-by: Alexander Dahlberg <dustbin4ever@gmail.com>
36 lines
1.7 KiB
Plaintext
36 lines
1.7 KiB
Plaintext
// Copyright 2014 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/services.dart';
|
|
|
|
void main() {
|
|
// Changes made in https://github.com/flutter/flutter/pull/86198
|
|
AppBarTheme appBarTheme = AppBarTheme();
|
|
appBarTheme = AppBarTheme(systemOverlayStyle: SystemUiOverlayStyle.dark);
|
|
appBarTheme = AppBarTheme(systemOverlayStyle: SystemUiOverlayStyle.light);
|
|
appBarTheme = AppBarTheme(error: '');
|
|
appBarTheme = appBarTheme.copyWith(error: '');
|
|
appBarTheme = appBarTheme.copyWith(systemOverlayStyle: SystemUiOverlayStyle.dark);
|
|
appBarTheme = appBarTheme.copyWith(systemOverlayStyle: SystemUiOverlayStyle.light);
|
|
appBarTheme.systemOverlayStyle;
|
|
|
|
TextTheme myTextTheme = TextTheme();
|
|
AppBarTheme appBarTheme = AppBarTheme();
|
|
appBarTheme = AppBarTheme(toolbarTextStyle: myTextTheme.bodyMedium, titleTextStyle: myTextTheme.titleLarge);
|
|
appBarTheme = AppBarTheme(toolbarTextStyle: myTextTheme.bodyMedium, titleTextStyle: myTextTheme.titleLarge);
|
|
appBarTheme = appBarTheme.copyWith(toolbarTextStyle: myTextTheme.bodyMedium, titleTextStyle: myTextTheme.titleLarge);
|
|
appBarTheme = appBarTheme.copyWith(toolbarTextStyle: myTextTheme.bodyMedium, titleTextStyle: myTextTheme.titleLarge);
|
|
|
|
AppBarTheme appBarTheme = AppBarTheme();
|
|
appBarTheme = AppBarTheme();
|
|
appBarTheme = AppBarTheme();
|
|
appBarTheme = appBarTheme.copyWith();
|
|
appBarTheme = appBarTheme.copyWith();
|
|
appBarTheme.backwardsCompatibility; // Removing field reference not supported.
|
|
|
|
AppBarTheme appBarTheme = AppBarTheme();
|
|
appBarTheme.backgroundColor;
|
|
}
|