Revert "Add support for Material 3 Divider and VerticalDivider" (#112471)
This commit is contained in:
@@ -24,7 +24,6 @@ import 'package:gen_defaults/button_template.dart';
|
||||
import 'package:gen_defaults/card_template.dart';
|
||||
import 'package:gen_defaults/checkbox_template.dart';
|
||||
import 'package:gen_defaults/dialog_template.dart';
|
||||
import 'package:gen_defaults/divider_template.dart';
|
||||
import 'package:gen_defaults/fab_template.dart';
|
||||
import 'package:gen_defaults/filter_chip_template.dart';
|
||||
import 'package:gen_defaults/icon_button_template.dart';
|
||||
@@ -66,7 +65,6 @@ Future<void> main(List<String> args) async {
|
||||
'date_picker_docked.json',
|
||||
'date_picker_modal.json',
|
||||
'dialog.json',
|
||||
'divider.json',
|
||||
'dialog_fullscreen.json',
|
||||
'elevation.json',
|
||||
'fab_extended_primary.json',
|
||||
@@ -123,7 +121,6 @@ Future<void> main(List<String> args) async {
|
||||
CardTemplate('Card', '$materialLib/card.dart', tokens).updateFile();
|
||||
CheckboxTemplate('Checkbox', '$materialLib/checkbox.dart', tokens).updateFile();
|
||||
DialogTemplate('Dialog', '$materialLib/dialog.dart', tokens).updateFile();
|
||||
DividerTemplate('Divider', '$materialLib/divider.dart', tokens).updateFile();
|
||||
FABTemplate('FAB', '$materialLib/floating_action_button.dart', tokens).updateFile();
|
||||
FilterChipTemplate('ChoiceChip', '$materialLib/choice_chip.dart', tokens).updateFile();
|
||||
FilterChipTemplate('FilterChip', '$materialLib/filter_chip.dart', tokens).updateFile();
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
// 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 'template.dart';
|
||||
|
||||
class DividerTemplate extends TokenTemplate {
|
||||
const DividerTemplate(super.blockName, super.fileName, super.tokens, {
|
||||
super.colorSchemePrefix = '_colors.',
|
||||
super.textThemePrefix = '_textTheme.'
|
||||
});
|
||||
|
||||
@override
|
||||
String generate() => '''
|
||||
class _${blockName}DefaultsM3 extends DividerThemeData {
|
||||
_${blockName}DefaultsM3(this.context) : super(thickness: ${tokens["md.comp.divider.thickness"]});
|
||||
|
||||
final BuildContext context;
|
||||
late final ColorScheme _colors = Theme.of(context).colorScheme;
|
||||
|
||||
@override Color? get color => ${componentColor("md.comp.divider")};
|
||||
}
|
||||
''';
|
||||
}
|
||||
Reference in New Issue
Block a user