forked from firka/flutter
Prepare more of dev for use_super_parameters (#101073)
This commit is contained in:
committed by
GitHub
parent
75baed585e
commit
ca2d60e8e2
@@ -14,7 +14,7 @@ void main() {
|
||||
enum ScrollMode { complex, tile }
|
||||
|
||||
class ComplexLayoutApp extends StatefulWidget {
|
||||
const ComplexLayoutApp({Key? key}) : super(key: key);
|
||||
const ComplexLayoutApp({super.key});
|
||||
|
||||
@override
|
||||
ComplexLayoutAppState createState() => ComplexLayoutAppState();
|
||||
@@ -55,7 +55,7 @@ class ComplexLayoutAppState extends State<ComplexLayoutApp> {
|
||||
}
|
||||
|
||||
class TileScrollLayout extends StatelessWidget {
|
||||
const TileScrollLayout({ Key? key }) : super(key: key);
|
||||
const TileScrollLayout({ super.key });
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -81,7 +81,7 @@ class TileScrollLayout extends StatelessWidget {
|
||||
}
|
||||
|
||||
class ComplexLayout extends StatefulWidget {
|
||||
const ComplexLayout({ Key? key }) : super(key: key);
|
||||
const ComplexLayout({ super.key });
|
||||
|
||||
@override
|
||||
ComplexLayoutState createState() => ComplexLayoutState();
|
||||
@@ -129,7 +129,7 @@ class ComplexLayoutState extends State<ComplexLayout> {
|
||||
}
|
||||
|
||||
class TopBarMenu extends StatelessWidget {
|
||||
const TopBarMenu({Key? key}) : super(key: key);
|
||||
const TopBarMenu({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -182,7 +182,7 @@ class TopBarMenu extends StatelessWidget {
|
||||
}
|
||||
|
||||
class MenuItemWithIcon extends StatelessWidget {
|
||||
const MenuItemWithIcon(this.icon, this.title, this.subtitle, {Key? key}) : super(key: key);
|
||||
const MenuItemWithIcon(this.icon, this.title, this.subtitle, {super.key});
|
||||
|
||||
final IconData icon;
|
||||
final String title;
|
||||
@@ -204,7 +204,7 @@ class MenuItemWithIcon extends StatelessWidget {
|
||||
}
|
||||
|
||||
class FancyImageItem extends StatelessWidget {
|
||||
const FancyImageItem(this.index, {Key? key}) : super(key: key);
|
||||
const FancyImageItem(this.index, {super.key});
|
||||
|
||||
final int index;
|
||||
|
||||
@@ -228,7 +228,7 @@ class FancyImageItem extends StatelessWidget {
|
||||
}
|
||||
|
||||
class FancyGalleryItem extends StatelessWidget {
|
||||
const FancyGalleryItem(this.index, {Key? key}) : super(key: key);
|
||||
const FancyGalleryItem(this.index, {super.key});
|
||||
|
||||
final int index;
|
||||
@override
|
||||
@@ -250,7 +250,7 @@ class FancyGalleryItem extends StatelessWidget {
|
||||
}
|
||||
|
||||
class InfoBar extends StatelessWidget {
|
||||
const InfoBar({Key? key}) : super(key: key);
|
||||
const InfoBar({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -268,7 +268,7 @@ class InfoBar extends StatelessWidget {
|
||||
}
|
||||
|
||||
class IconBar extends StatelessWidget {
|
||||
const IconBar({Key? key}) : super(key: key);
|
||||
const IconBar({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -287,7 +287,7 @@ class IconBar extends StatelessWidget {
|
||||
}
|
||||
|
||||
class IconWithText extends StatelessWidget {
|
||||
const IconWithText(this.icon, this.title, {Key? key}) : super(key: key);
|
||||
const IconWithText(this.icon, this.title, {super.key});
|
||||
|
||||
final IconData icon;
|
||||
final String title;
|
||||
@@ -308,7 +308,7 @@ class IconWithText extends StatelessWidget {
|
||||
}
|
||||
|
||||
class MiniIconWithText extends StatelessWidget {
|
||||
const MiniIconWithText(this.icon, this.title, {Key? key}) : super(key: key);
|
||||
const MiniIconWithText(this.icon, this.title, {super.key});
|
||||
|
||||
final IconData icon;
|
||||
final String title;
|
||||
@@ -337,7 +337,7 @@ class MiniIconWithText extends StatelessWidget {
|
||||
}
|
||||
|
||||
class FatDivider extends StatelessWidget {
|
||||
const FatDivider({Key? key}) : super(key: key);
|
||||
const FatDivider({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -349,7 +349,7 @@ class FatDivider extends StatelessWidget {
|
||||
}
|
||||
|
||||
class UserHeader extends StatelessWidget {
|
||||
const UserHeader(this.userName, {Key? key}) : super(key: key);
|
||||
const UserHeader(this.userName, {super.key});
|
||||
|
||||
final String userName;
|
||||
|
||||
@@ -397,7 +397,7 @@ class UserHeader extends StatelessWidget {
|
||||
}
|
||||
|
||||
class ItemDescription extends StatelessWidget {
|
||||
const ItemDescription({Key? key}) : super(key: key);
|
||||
const ItemDescription({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -409,7 +409,7 @@ class ItemDescription extends StatelessWidget {
|
||||
}
|
||||
|
||||
class ItemImageBox extends StatelessWidget {
|
||||
const ItemImageBox({Key? key}) : super(key: key);
|
||||
const ItemImageBox({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -490,7 +490,7 @@ class ItemImageBox extends StatelessWidget {
|
||||
}
|
||||
|
||||
class ItemGalleryBox extends StatelessWidget {
|
||||
const ItemGalleryBox(this.index, {Key? key}) : super(key: key);
|
||||
const ItemGalleryBox(this.index, {super.key});
|
||||
|
||||
final int index;
|
||||
|
||||
@@ -559,7 +559,7 @@ class ItemGalleryBox extends StatelessWidget {
|
||||
}
|
||||
|
||||
class BottomBar extends StatelessWidget {
|
||||
const BottomBar({Key? key}) : super(key: key);
|
||||
const BottomBar({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -586,7 +586,7 @@ class BottomBar extends StatelessWidget {
|
||||
}
|
||||
|
||||
class BottomBarButton extends StatelessWidget {
|
||||
const BottomBarButton(this.icon, this.title, {Key? key}) : super(key: key);
|
||||
const BottomBarButton(this.icon, this.title, {super.key});
|
||||
|
||||
final IconData icon;
|
||||
final String title;
|
||||
@@ -609,7 +609,7 @@ class BottomBarButton extends StatelessWidget {
|
||||
}
|
||||
|
||||
class GalleryDrawer extends StatelessWidget {
|
||||
const GalleryDrawer({ Key? key }) : super(key: key);
|
||||
const GalleryDrawer({ super.key });
|
||||
|
||||
void _changeTheme(BuildContext context, bool value) {
|
||||
ComplexLayoutApp.of(context)?.lightTheme = value;
|
||||
@@ -680,7 +680,7 @@ class GalleryDrawer extends StatelessWidget {
|
||||
}
|
||||
|
||||
class FancyDrawerHeader extends StatelessWidget {
|
||||
const FancyDrawerHeader({Key? key}) : super(key: key);
|
||||
const FancyDrawerHeader({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
Reference in New Issue
Block a user