Skip to content

Commit 351a68c

Browse files
committed
update the painting part name.
1 parent 5f94c1a commit 351a68c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/const/page_item_const.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ const PAGE_ITEMS = [
288288
"click": PageName.ASYNC_STREAM_BUILDER,
289289
},
290290
{
291-
"title": PageName.PAINT_OPACITY,
291+
"title": PageName.PAINTING,
292292
"img": PageImage.FLUTTER_OPEN,
293-
"click": PageName.PAINT_OPACITY,
293+
"click": PageName.PAINTING,
294294
},
295295
];

lib/const/page_name_const.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ class PageName {
6363
static const INTER_NAV = "Navigator";
6464
static const ASYNC_FUTURE = "FutureBuilder";
6565
static const ASYNC_STREAM_BUILDER = "StreamBuilder";
66-
static const PAINT_OPACITY = "Opacity";
66+
static const PAINTING = "Painting";
6767
}

lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class FlutterOpenApp extends StatelessWidget {
7676
PageName.INTER_NAV: (context) => NavigatorPage(),
7777
PageName.ASYNC_FUTURE: (context) => FuturePage(),
7878
PageName.ASYNC_STREAM_BUILDER: (context) => StreamBuilderPage(),
79-
PageName.PAINT_OPACITY: (context) => PaintingPage(),
79+
PageName.PAINTING: (context) => PaintingPage(),
8080
},
8181
);
8282
}

lib/page/painting/PaintingPage.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class _OpacityState extends State<PaintingPage> {
117117
Widget build(BuildContext context) {
118118
return Scaffold(
119119
appBar: AppBar(
120-
title: Text("Hello world"),
120+
title: Text(PageName.PAINTING),
121121
),
122122
body: SingleChildScrollView(
123123
child: Column(

0 commit comments

Comments
 (0)