mirror of
https://github.com/Iconica-Development/flutter_timeline.git
synced 2025-05-19 02:23:46 +02:00
feat: migrate to flutter 3.22
This commit is contained in:
parent
9d476129fd
commit
567765f856
9 changed files with 15 additions and 12 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
## 4.1.0
|
||||||
|
- Migrate to flutter 3.22 which deprecates the background and onBackground properties in the ThemeData and also removes MaterialStatePropertyAll
|
||||||
|
|
||||||
## 4.0.0
|
## 4.0.0
|
||||||
|
|
||||||
- Add a serviceBuilder to the userstory configuration
|
- Add a serviceBuilder to the userstory configuration
|
||||||
|
|
|
@ -32,7 +32,7 @@ class GoRouterApp extends StatelessWidget {
|
||||||
seedColor: const Color(0xFFB8E2E8),
|
seedColor: const Color(0xFFB8E2E8),
|
||||||
primary: const Color(0xffb71c6d),
|
primary: const Color(0xffb71c6d),
|
||||||
).copyWith(
|
).copyWith(
|
||||||
background: const Color(0XFFFAF9F6),
|
surface: const Color(0XFFFAF9F6),
|
||||||
),
|
),
|
||||||
useMaterial3: true,
|
useMaterial3: true,
|
||||||
),
|
),
|
||||||
|
|
|
@ -12,7 +12,7 @@ class NavigatorApp extends StatelessWidget {
|
||||||
theme: ThemeData(
|
theme: ThemeData(
|
||||||
colorScheme:
|
colorScheme:
|
||||||
ColorScheme.fromSeed(seedColor: Colors.deepPurple).copyWith(
|
ColorScheme.fromSeed(seedColor: Colors.deepPurple).copyWith(
|
||||||
background: const Color(0xFFB8E2E8),
|
surface: const Color(0xFFB8E2E8),
|
||||||
),
|
),
|
||||||
useMaterial3: true,
|
useMaterial3: true,
|
||||||
),
|
),
|
||||||
|
|
|
@ -13,7 +13,7 @@ class WidgetApp extends StatelessWidget {
|
||||||
theme: ThemeData(
|
theme: ThemeData(
|
||||||
colorScheme:
|
colorScheme:
|
||||||
ColorScheme.fromSeed(seedColor: Colors.deepPurple).copyWith(
|
ColorScheme.fromSeed(seedColor: Colors.deepPurple).copyWith(
|
||||||
background: const Color(0xFFB8E2E8),
|
surface: const Color(0xFFB8E2E8),
|
||||||
),
|
),
|
||||||
useMaterial3: true,
|
useMaterial3: true,
|
||||||
),
|
),
|
||||||
|
|
|
@ -201,7 +201,7 @@ class _TimelinePostCreationScreenState
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => Container(
|
builder: (context) => Container(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
color: theme.colorScheme.background,
|
color: theme.colorScheme.surface,
|
||||||
child: ImagePicker(
|
child: ImagePicker(
|
||||||
imagePickerConfig: widget.options.imagePickerConfig,
|
imagePickerConfig: widget.options.imagePickerConfig,
|
||||||
imagePickerTheme: widget.options.imagePickerTheme,
|
imagePickerTheme: widget.options.imagePickerTheme,
|
||||||
|
@ -320,7 +320,7 @@ class _TimelinePostCreationScreenState
|
||||||
)
|
)
|
||||||
: ElevatedButton(
|
: ElevatedButton(
|
||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
backgroundColor: MaterialStatePropertyAll(
|
backgroundColor: WidgetStatePropertyAll(
|
||||||
theme.colorScheme.primary,
|
theme.colorScheme.primary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -58,7 +58,7 @@ class TimelinePostOverviewScreen extends StatelessWidget {
|
||||||
ElevatedButton(
|
ElevatedButton(
|
||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
backgroundColor:
|
backgroundColor:
|
||||||
MaterialStatePropertyAll(Theme.of(context).primaryColor),
|
WidgetStatePropertyAll(Theme.of(context).primaryColor),
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
onPostSubmit(timelinePost);
|
onPostSubmit(timelinePost);
|
||||||
|
|
|
@ -563,7 +563,7 @@ class _TimelinePostScreenState extends State<TimelinePostScreen> {
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => Container(
|
builder: (context) => Container(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
color: theme.colorScheme.background,
|
color: theme.colorScheme.surface,
|
||||||
child: ImagePicker(
|
child: ImagePicker(
|
||||||
imagePickerConfig: widget.options.imagePickerConfig,
|
imagePickerConfig: widget.options.imagePickerConfig,
|
||||||
imagePickerTheme: widget.options.imagePickerTheme,
|
imagePickerTheme: widget.options.imagePickerTheme,
|
||||||
|
|
|
@ -28,20 +28,20 @@ class CategorySelectorButton extends StatelessWidget {
|
||||||
onPressed: onTap,
|
onPressed: onTap,
|
||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
padding: const MaterialStatePropertyAll(
|
padding: const WidgetStatePropertyAll(
|
||||||
EdgeInsets.symmetric(
|
EdgeInsets.symmetric(
|
||||||
vertical: 5,
|
vertical: 5,
|
||||||
horizontal: 12,
|
horizontal: 12,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
fixedSize: MaterialStatePropertyAll(Size(140, isOnTop ? 140 : 20)),
|
fixedSize: WidgetStatePropertyAll(Size(140, isOnTop ? 140 : 20)),
|
||||||
backgroundColor: MaterialStatePropertyAll(
|
backgroundColor: WidgetStatePropertyAll(
|
||||||
selected
|
selected
|
||||||
? theme.colorScheme.primary
|
? theme.colorScheme.primary
|
||||||
: options.theme.categorySelectionButtonBackgroundColor ??
|
: options.theme.categorySelectionButtonBackgroundColor ??
|
||||||
Colors.transparent,
|
Colors.transparent,
|
||||||
),
|
),
|
||||||
shape: MaterialStatePropertyAll(
|
shape: WidgetStatePropertyAll(
|
||||||
RoundedRectangleBorder(
|
RoundedRectangleBorder(
|
||||||
borderRadius: const BorderRadius.all(
|
borderRadius: const BorderRadius.all(
|
||||||
Radius.circular(8),
|
Radius.circular(8),
|
||||||
|
|
|
@ -33,7 +33,7 @@ class _ReactionBottomState extends State<ReactionBottom> {
|
||||||
Widget build(BuildContext context) => SafeArea(
|
Widget build(BuildContext context) => SafeArea(
|
||||||
bottom: true,
|
bottom: true,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Theme.of(context).colorScheme.background,
|
color: Theme.of(context).colorScheme.surface,
|
||||||
child: Container(
|
child: Container(
|
||||||
margin: const EdgeInsets.symmetric(
|
margin: const EdgeInsets.symmetric(
|
||||||
horizontal: 12,
|
horizontal: 12,
|
||||||
|
|
Loading…
Reference in a new issue