mirror of
https://github.com/flutter/samples.git
synced 2026-04-25 08:22:16 +00:00
[linting_tool] Add lint rules list (#856)
This commit is contained in:
committed by
GitHub
parent
3b65403631
commit
6bac1b9694
@@ -3,6 +3,7 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_markdown/flutter_markdown.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:linting_tool/theme/colors.dart';
|
||||
|
||||
@@ -205,4 +206,22 @@ class AppTheme {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
static MarkdownStyleSheet buildMarkDownTheme(ThemeData theme) {
|
||||
final textTheme = theme.textTheme;
|
||||
return MarkdownStyleSheet.largeFromTheme(theme).copyWith(
|
||||
strong: textTheme.subtitle2!,
|
||||
em: textTheme.bodyText2!.copyWith(
|
||||
fontWeight: FontWeight.w900,
|
||||
fontStyle: FontStyle.italic,
|
||||
),
|
||||
codeblockPadding: const EdgeInsets.all(8),
|
||||
codeblockDecoration: BoxDecoration(
|
||||
color: Colors.grey.shade100,
|
||||
),
|
||||
code: TextStyle(
|
||||
backgroundColor: Colors.grey.shade100,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user